How to fix error 17 and 29?
#1

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?
Reply
#2

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

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

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

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

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;
}
Reply
#6

Copy and paste this:

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)