SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/08/2012, 10:58 AM   #1
MrSnapp
Big Clucker
 
MrSnapp's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 120
Reputation: 5
Default Error 017: undefined symbol "string"

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

Line 853:
Code:
format(string, sizeof(string), "* %s spins a key and tries to start vehicle engine.", plname);
Please help!
__________________
Want an awesome SAMP host? Click here.
Need help with any scripting? Click here.
Don't know SAMP forum rules? Click here.

Also, if I helped you in anyway please hit the rep button! Greatly appreciated.
MrSnapp is offline   Reply With Quote
Old 24/08/2012, 10:59 AM   #2
FalconX
Gangsta
 
FalconX's Avatar
 
Join Date: Mar 2011
Location: Kuwait
Posts: 633
Reputation: 103
Default Re: Error 017: undefined symbol "string"

Quote:
Originally Posted by MrSnapp View Post
Hi all. This is the error I get at line 853- error 017: undefined symbol "string"

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

pawn Code:
new string[ 128 ];

above that line.
__________________
^
FalconX is offline   Reply With Quote
Old 24/08/2012, 11:00 AM   #3
Crazyboobs
Huge Clucker
 
Join Date: Mar 2012
Posts: 303
Reputation: 38
Default Re: Error 017: undefined symbol "string"

add
pawn Code:
new string[128];
Crazyboobs is offline   Reply With Quote
Old 24/08/2012, 11:09 AM   #4
MrSnapp
Big Clucker
 
MrSnapp's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 120
Reputation: 5
Default Re: Error 017: undefined symbol "string"

Thanks all. How would I fix this:

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

Line is:

Code:
if(CanTurnEngine[playerid]; != idcar && CanTurnEngine[playerid]; == 9999);
__________________
Want an awesome SAMP host? Click here.
Need help with any scripting? Click here.
Don't know SAMP forum rules? Click here.

Also, if I helped you in anyway please hit the rep button! Greatly appreciated.
MrSnapp is offline   Reply With Quote
Old 24/08/2012, 11:18 AM   #5
Riddick94
Banned
 
Join Date: Mar 2010
Location: Poland
Posts: 1,767
Reputation: 223
Default Re: Error 017: undefined symbol "string"

pawn Code:
if(CanTurnEngine[playerid] != idcar && CanTurnEngine[playerid] == 9999);
Riddick94 is offline   Reply With Quote
Old 24/08/2012, 11:19 AM   #6
FalconX
Gangsta
 
FalconX's Avatar
 
Join Date: Mar 2011
Location: Kuwait
Posts: 633
Reputation: 103
Default Re: Error 017: undefined symbol "string"

Quote:
Originally Posted by MrSnapp View Post
Thanks all. How would I fix this:

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

Line is:

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

pawn Code:
if( CanTurnEngine[ playerid ] != idcar && CanTurnEngine[ playerid ] == 9999) ; // remove ";" from both..
__________________
^
FalconX is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
\pawno\include\streamer.inc(221) : error 017: undefined symbol "MAPICON_LOCAL" AdamCooper Scripting Help 5 05/05/2012 01:08 AM
5 Dialog errors - Input line too long, undefined symbol "t","is" and "only" Deal-or-die Scripting Help 6 01/05/2012 12:08 PM
[SOLVED] error 017: undefined symbol "GetPVarInt" cAMo Help Archive 10 15/05/2010 07:12 PM
error 017: undefined symbol "equal" ... and how define it ? Bearfist Help Archive 4 21/04/2009 02:35 PM


All times are GMT. The time now is 05:26 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.