SA-MP Forums Archive
one error help - 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: one error help (/showthread.php?tid=351797)



one error help - carbonzero - 17.06.2012

Код:
:\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;
	        }



Re: one error help - FireCat - 17.06.2012

pawn Код:
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[256];
            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;
            }



Re: one error help - carbonzero - 17.06.2012

not work.....I can give you my gm to see?please....i don't know what's wrong
Sorry for my bad english