Some weird thing. - 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: Some weird thing. (
/showthread.php?tid=340123)
Some weird thing. -
sniperwars - 06.05.2012
So, I spent an hour converting all my scripts to ZCMD. I have just finished converting the 53 Drift Teleports by Kitten
to ZCMD but I get these errors:
Код:
C:\Users\Sean\Desktop\samp03dsvr_R2_win32\filterscripts\53Drifts.pwn(62) : error 017: undefined symbol "string"
C:\Users\Sean\Desktop\samp03dsvr_R2_win32\filterscripts\53Drifts.pwn(62) : error 017: undefined symbol "string"
C:\Users\Sean\Desktop\samp03dsvr_R2_win32\filterscripts\53Drifts.pwn(62) : error 029: invalid expression, assumed zero
C:\Users\Sean\Desktop\samp03dsvr_R2_win32\filterscripts\53Drifts.pwn(62) : fatal error 107: too many error messages on one line
This is the error line but the other commands have the same thing:
pawn Код:
format(string, sizeof(string), "%s [ID:%d] has gone to Drift 1 (/drift1)", pName, playerid);
Can anyone tell me how to solve this ?
Respuesta: Some weird thing. -
Chris1337 - 06.05.2012
try this
pawn Код:
new string [124];
format(string, sizeof(string), "%s [ID:%d] has gone to Drift 1 (/drift1)", pName, playerid);
Re: Some weird thing. -
WarriorEd22 - 06.05.2012
Yes, you needed to create a new string first. Just add this:
at the top of this:
pawn Код:
format(string, sizeof(string), "%s [ID:%d] has gone to Drift 1 (/drift1)", pName, playerid);
Re: Some weird thing. -
ViniBorn - 06.05.2012
Only 64 characters are needed in this command...
Re: Some weird thing. -
2KY - 06.05.2012
Quote:
Originally Posted by Viniborn
Only 64 characters are needed in this command...
|
I honestly don't know why they're using 124 either.. Such a random number, the norm I see is 128, or 256 (oh god..).