SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/09/2012, 10:07 AM   #1
MoNsTeR_EnErGy
Little Clucker
 
Join Date: Jul 2012
Posts: 6
Reputation: 0
Default error 017: undefined symbol "string"

Hello i have a Problem with this Errors,i hope you can Help me
Quote:
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3900) : error 017: undefined symbol "string"
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : error 017: undefined symbol "string"
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : error 017: undefined symbol "string"
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : error 029: invalid expression, assumed zero
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Quote:
3899 strsplit(plrIP, array, '.');
3900 format(string,50,"%d.%d",array[0],array[1]);
3901 format(string, sizeof(string), "/RangeBan/%s.ini", string);
3902 if(dini_Exists(string))
MoNsTeR_EnErGy is offline   Reply With Quote
Old 10/09/2012, 10:10 AM   #2
Dare Devil.....
Huge Clucker
 
Dare Devil.....'s Avatar
 
Join Date: Jan 2012
Location: Pakistan
Posts: 253
Reputation: 10
Default Re: error 017: undefined symbol "string"

Try to put this at the top of script?

pawn Code:
new string[128];
Dare Devil..... is offline   Reply With Quote
Old 10/09/2012, 10:10 AM   #3
Faisal_khan
High-roller
 
Faisal_khan's Avatar
 
Join Date: Feb 2012
Location: Ireland and India
Posts: 1,826
Reputation: 208
Default Re: error 017: undefined symbol "string"

Post in English or post in your language in the language section.

You did not defined string.
Add:
pawn Code:
new string[128];
in your code above
pawn Code:
format(string,50,"%d.%d",array[0],array[1]);
__________________
Not a SAMP Dev. anymore.
Faisal_khan is offline   Reply With Quote
Old 10/09/2012, 10:11 AM   #4
Mark™
Guest
 
Posts: n/a
Default Re: error 017: undefined symbol "string"

Quote:
Hallo ich habe was Gescriptet aber es kommen diese errors,kann mir jemand Helfen
Quote: C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3900) : error 017: undefined symbol "string"
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : error 017: undefined symbol "string"
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : error 017: undefined symbol "string"
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : error 029: invalid expression, assumed zero
C:\Users\Lukas\Desktop\AUDIO_TS\TgR.pwn(3901) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

Das sind die Zeilen wo der/die Error/s angezeigt werden
Quote: 3899 strsplit(plrIP, array, '.');
3900 format(string,50,"%d.%d",array[0],array[1]);
3901 format(string, sizeof(string), "/RangeBan/%s.ini", string);
3902 if(dini_Exists(string))

Hoffe ihr könnt mir Helfen.
Post in English, you can post in your language in your own language forums, if available. Secondly, you need to create a variable named string before using it inside any function like this
pawn Code:
new string[75];
  Reply With Quote
Old 10/09/2012, 10:17 AM   #5
MoNsTeR_EnErGy
Little Clucker
 
Join Date: Jul 2012
Posts: 6
Reputation: 0
Default AW: error 017: undefined symbol "string"

Ok Thanks I post this in my language
MoNsTeR_EnErGy 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
Error 017: undefined symbol "string" MrSnapp Scripting Help 5 24/08/2012 11:19 AM
\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
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:57 PM.


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