Errors with plates..
#7

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/plate", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!IsAtDealership(playerid))
            {
                return 1;
            }
            if(!strlen(tmp))
            {
            if(PlayerToPoint(3.0, playerid,2130.7195,-1147.0983,24.3918)) //You're using if
            new length = strlen(cmdtext); //But not adding a bracket! (' { ')
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[128];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            idx++;
            if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "USE: {AA3333}/plate{AFAFAF} [plate number]");
            SetVehicleNumberPlate(GetPlayerVehicleID(playerid), result);
        } //24575
        return 1;
    }
}
So:

pawn Код:
if(blabla)
{
  morebla();
}
return;
Undefined symbol length about three times, if you fix that I'm going to add price maybe $2000 to change your license plates.
Reply


Messages In This Thread
Errors with plates.. - by Darklom - 30.12.2010, 17:44
Re: Errors with plates.. - by FUNExtreme - 30.12.2010, 17:49
Re: Errors with plates.. - by c-middia - 30.12.2010, 17:56
Re: Errors with plates.. - by Darklom - 30.12.2010, 17:59
Re: Errors with plates.. - by blackwave - 30.12.2010, 18:17
Re: Errors with plates.. - by Hiddos - 30.12.2010, 18:21
Re: Errors with plates.. - by Darklom - 30.12.2010, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)