SA-MP Forums Archive
How to fix error 17 and 29? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to fix error 17 and 29? (/showthread.php?tid=352885)



How to fix error 17 and 29? - Frosty_LV - 21.06.2012

Hello! I am beginner in scripting, just learning and trying to understand my mistakes but this went hard for my scripting level

So, may you please help out, I pressed Compile and it showed me this:

error 029: invalid expression, assumed zero
error 017: undefined symbol "Blank"
error 017: undefined symbol "Script"
fatal error 107: too many error messages on one line

The unlucky line:

SetGameModeText(”Blank Script”);

Where is the problem?


Re: How to fix error 17 and 29? - Macluawn - 21.06.2012

EDIT:
Quote:
Originally Posted by newbienoob
Посмотреть сообщение
lol wrong character. It's " " not ” ”
pawn Код:
SetGameModeText("Blank Script");



Re: How to fix error 17 and 29? - nilanjay - 21.06.2012

Where did u put "SetGameModeText("Blank Script");?


Re: How to fix error 17 and 29? - newbienoob - 21.06.2012

lol wrong character. It's " " not ” ”

pawn Код:
SetGameModeText("Blank Script");



Re: How to fix error 17 and 29? - Frosty_LV - 21.06.2012

Yeah, I changed these '' but anyway, it just gaved me another error -

error 027: invalid character constant
error 017: undefined symbol "Blank"
error 017: undefined symbol "Script"
fatal error 107: too many error messages on one line

Error 27 came :S

The script looks like this:


Код:
public OnGameModeInit()
{
// Don’t use these lines if it’s a filterscript
   SetGameModeText(''Blank Script'')
  AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
       infopickup = CreatePickup(1318, 1, 1457.2872, -1010.9865, 26.8438
    return 1;
}



Re: How to fix error 17 and 29? - SuperViper - 21.06.2012

Copy and paste this:

pawn Код:
SetGameModeText("Blank Script");
You need to use " (quotes).


Re: How to fix error 17 and 29? - judothijs - 21.06.2012

Make sure your keyboard setting are right: Press Control + Shift if they're not, as that may screw up your characters.

pawn Код:
public OnGameModeInit()
{
      // Don’t use these lines if it’s a filterscript
      SetGameModeText("Blank Script")
      AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
      infopickup = CreatePickup(1318, 1, 1457.2872, -1010.9865, 26.8438
      return 1;
}
There you go.
The difference is, that the proper characters are one character, and you've used 2 similar looking characters, which look the same if placed next to each other. PAWNO is very sensitive for this.