A que se debe este error de crashdetect
#9

pawn Код:
CMD:setscore(playerid, params[])
{
    if(IsPlayerAdmin(playerid))
    {
        if(sscanf(params, "ud", params[0], params[1])) return SendClientMessage(playerid, COLOR_ROJO, "Usa: /setscore [id] [score]");
        if(params[0] == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ROJO, "Ese jugador no esta conectado");
//______------¬--------¬¬¬¬¬¬¬¬---¬¬¬¬¬¬¬¬¬---¬------------------------
        if(params[1] > 9000000 || params[1] < 1) return SendClientMessage(playerid, COLOR_ROJO, "[score] nomas de 9kk y no menos de 1");

        PlayerInfo[params[0]][Score] = params[1];
        SetPlayerScore(params[0], PlayerInfo[params[0]][Score]);
        SaveAccount(params[0]);
    }
    else SendClientMessage(playerid, COLOR_ROJO, "Comando solo para administradores RCON!");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)