Error 017: undefined symbol "string"
#1

Hi all. This is the error I get at line 853- error 017: undefined symbol "string"

Line 853:
Код:
format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", plname);
Please help!
Reply
#2

Quote:
Originally Posted by MrSnapp
Посмотреть сообщение
Hi all. This is the error I get at line 853- error 017: undefined symbol "string"

Line 853:
Код:
format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", plname);
Please help!
put

pawn Код:
new string[ 128 ];
above that line.
Reply
#3

add
pawn Код:
new string[128];
Reply
#4

Thanks all. How would I fix this:

error 001: expected token: ";", but found "]"

Line is:

Код:
if(CanTurnEngine[playerid]; != idcar && CanTurnEngine[playerid]; == 9999);
Reply
#5

pawn Код:
if(CanTurnEngine[playerid] != idcar && CanTurnEngine[playerid] == 9999);
Reply
#6

Quote:
Originally Posted by MrSnapp
Посмотреть сообщение
Thanks all. How would I fix this:

error 001: expected token: ";", but found "]"

Line is:

Код:
if(CanTurnEngine[playerid]; != idcar && CanTurnEngine[playerid]; == 9999);
it should be

pawn Код:
if( CanTurnEngine[ playerid ] != idcar && CanTurnEngine[ playerid ] == 9999) ; // remove ";" from both..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)