one error help
#1

Код:
:\Documents and Settings\Carbon\My Documents\ggg\gamemodes\ggg.pwn(18474) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 18473:
Код:
	        x_nr = strtok(cmdtext, idx);
from
Код:
	if(strcmp(cmd, "/v", true) == 0 || strcmp(cmd, "/vehicle", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SCM(playerid, COLOR_GREY, "   You need to login first ! ");
	            return 1;
	        }
	        new x_nr[64];
	        x_nr = strtok(cmdtext, idx);
	        if(!strlen(x_nr))
	        {
	            SCM(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]");
	            SCM(playerid, COLOR_WHITE, "Available names: buy ,park, lock, sell, sellto, color, tow, locate, plate, tunning, paintjob");
	            return 1;
	        }
Reply


Messages In This Thread
one error help - by carbonzero - 17.06.2012, 10:50
Re: one error help - by FireCat - 17.06.2012, 10:51
Re: one error help - by carbonzero - 17.06.2012, 11:30

Forum Jump:


Users browsing this thread: 2 Guest(s)