Some weird thing.
#1

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 ?
Reply
#2

try this
pawn Код:
new string [124];

format(string, sizeof(string), "%s [ID:%d] has gone to Drift 1 (/drift1)", pName, playerid);
Reply
#3

Yes, you needed to create a new string first. Just add this:

pawn Код:
new string [124];
at the top of this:

pawn Код:
format(string, sizeof(string), "%s [ID:%d] has gone to Drift 1 (/drift1)", pName, playerid);
Reply
#4

Only 64 characters are needed in this command...
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)