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=376420)



error 017: undefined symbol "string" - MoNsTeR_EnErGy - 10.09.2012

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 © 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))




Re: error 017: undefined symbol "string" - Dare Devil..... - 10.09.2012

Try to put this at the top of script?

pawn Код:
new string[128];



Re: error 017: undefined symbol "string" - Faisal_khan - 10.09.2012

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

You did not defined string.
Add:
pawn Код:
new string[128];
in your code above
pawn Код:
format(string,50,"%d.%d",array[0],array[1]);



Re: error 017: undefined symbol "string" - Mark™ - 10.09.2012

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 © 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 Код:
new string[75];



AW: error 017: undefined symbol "string" - MoNsTeR_EnErGy - 10.09.2012

Ok Thanks I post this in my language