Something wrong happened , not with the function but with my script.
I wanted the player to get a Key_item when using a knife on the pig entity , but nothing happened.
GiveItem("Key_study", "Puzzle", "Key_study", "stone_hammer_chipper.tga", 0); /// i know that stone_hammer_chipper.tga is the image , i'll just change it later
GiveItem("Key_study", "Puzzle", "Key_study", "stone_hammer_chipper.tga", 0); /// i know that stone_hammer_chipper.tga is the image , i'll just change it later
Something wrong happened , not with the function but with my script.
I wanted the player to get a Key_item when using a knife on the pig entity , but nothing happened.
GiveItem("Key_study", "Puzzle", "Key_study", "stone_hammer_chipper.tga", 0); /// i know that stone_hammer_chipper.tga is the image , i'll just change it later
(10-19-2012, 03:05 PM)Nemet Robert Wrote: Try posting the entire script file. Use spoiler tags to make sure it ain't a massive wall of text the moment you open this thread.
This is odd, though. The 'ExecuteString' error also pops up at my place(harmless), but only if there's another error.
In the script, try checking the 259th line. That's where it says the "unexpected end of file" is occurring from (meaning something's missing). I looked, but can't find anything wrong.
And the ExecuteString errors aren't a problem. Maybe (they happened to appear, but only when there was a problem with the script file, otherwise, the ExecuteString error didn't even bother at all).
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 10-19-2012, 03:14 PM by Robby.)
(10-19-2012, 03:13 PM)Nemet Robert Wrote: In the script, try checking the 259th line. That's where it says the "unexpected end of file" is occurring from (meaning something's missing). I looked, but can't find anything wrong.
And the ExecuteString errors aren't a problem. Maybe (they happened to appear, but only when there was a problem with the script file, otherwise, the ExecuteString error didn't even bother at all).
It comes up when i enter the second map , and then the error comes and the game quits when i click ok.
(10-19-2012, 03:13 PM)Nemet Robert Wrote: In the script, try checking the 259th line. That's where it says the "unexpected end of file" is occurring from (meaning something's missing). I looked, but can't find anything wrong.
And the ExecuteString errors aren't a problem. Maybe (they happened to appear, but only when there was a problem with the script file, otherwise, the ExecuteString error didn't even bother at all).
It comes up when i enter the second map , and then the error comes and the game quits when i click ok.
That's normal for that. As I said, check line 259 in your script. Maybe there's something missing there.
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(10-19-2012, 03:13 PM)Nemet Robert Wrote: In the script, try checking the 259th line. That's where it says the "unexpected end of file" is occurring from (meaning something's missing). I looked, but can't find anything wrong.
And the ExecuteString errors aren't a problem. Maybe (they happened to appear, but only when there was a problem with the script file, otherwise, the ExecuteString error didn't even bother at all).
It comes up when i enter the second map , and then the error comes and the game quits when i click ok.
That's normal for that. As I said, check line 259 in your script. Maybe there's something missing there.
Da hell? Just checked your script, and there are 258 lines, there isn't a 259th line. Unless you left a space there.
This means a problem arose somewhere. Maybe a newly added function caused that. Try removing the newly added function, and see if the problem reappears. If yes, it means there's a big problem.
Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
(This post was last modified: 10-19-2012, 03:42 PM by Robby.)