SA-MP Forums Archive
Error 017: undefined symbol "string" - 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: Error 017: undefined symbol "string" (/showthread.php?tid=371728)



Error 017: undefined symbol "string" - MrSnapp - 24.08.2012

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!


Re: Error 017: undefined symbol "string" - FalconX - 24.08.2012

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.


Re: Error 017: undefined symbol "string" - Crazyboobs - 24.08.2012

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



Re: Error 017: undefined symbol "string" - MrSnapp - 24.08.2012

Thanks all. How would I fix this:

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

Line is:

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



Re: Error 017: undefined symbol "string" - Riddick94 - 24.08.2012

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



Re: Error 017: undefined symbol "string" - FalconX - 24.08.2012

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