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

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;
            }
Reply
#3

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


Forum Jump:


Users browsing this thread: 3 Guest(s)