sscanf warning help
#4

i get the error when i use the command to create a dealership

pawn Код:
CMD:adddealership(playerid, params[])
{
    if(AdminLevel[playerid]!=4) return SendClientMessage(playerid, COLOR_RED, "You admin is'nt high enough!");
    if(!IsPlayerSpawned(playerid)) return SendClientMessage(playerid, COLOR_RED, "You can't use this command now!");
    for(new i=1; i < MAX_DEALERSHIPS; i++)
    {
        if(!DealershipCreated[i])
        {
            new msg[128];
            DealershipCreated[i] = 1;
            GetPlayerPos(playerid, DealershipPos[i][0], DealershipPos[i][1], DealershipPos[i][2]);
            UpdateDealership(i, 0);
            SaveDealership(i);
            format(msg, sizeof(msg), "Added dealership id %d", i);
            SendClientMessage(playerid, COLOR_WHITE, msg);
            return 1;
        }
    }
    SendClientMessage(playerid, COLOR_RED, "Can't add any more dealerships!");
    return 1;
}
Reply


Messages In This Thread
sscanf warning help - by semaj - 05.03.2015, 20:19
Respuesta: sscanf warning help - by JuanStone - 05.03.2015, 21:15
Re: sscanf warning help - by semaj - 05.03.2015, 21:21
Re: sscanf warning help - by semaj - 05.03.2015, 21:54
Respuesta: sscanf warning help - by JuanStone - 05.03.2015, 21:58
Re: sscanf warning help - by semaj - 05.03.2015, 22:04
Re: sscanf warning help - by semaj - 05.03.2015, 22:09
Respuesta: sscanf warning help - by JuanStone - 05.03.2015, 22:11
Re: sscanf warning help - by semaj - 05.03.2015, 22:14

Forum Jump:


Users browsing this thread: 1 Guest(s)