Compile Error
#1

Hello , I'm trying to compile my gm when...

Error :
Код:
D:\X\Y\Z\gamemodes\GameMode.pwn(22942) : error 047: array sizes do not match, or destination array is too small
The Line 22942 - 22945
Код:
	        new x_nr[64];
	        x_nr = strtok(cmdtext, idx);
	        if(!strlen(x_nr))
	        {
Who can Help me please?
Reply
#2

pawn Код:
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
strtok returns a 256-er string.
Reply
#3

My advise: Don't use strtok at all and convert it all to zcmd and sscanf.
I do not recommend this, but if you must, you'll need to change the size of x_nr to 255 or 256.

Edit: too late
Reply
#4

Vince , It's not too late , thank you for help

Jeffry Thank you for help.

And... WORKS Thanks guys ;x ;x ;x
Reply
#5

No problem.
Have fun, and Happy Easter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)