[Ajuda] Score
#1

Porque nгo estб setando o score??


pawn Код:
CMD:darlevel(playerid, params[])
{
    new scores[128];
    new score;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, AZUL, "[ERRO]Use /comandos");
    if(sscanf(params, "ud", id, scores)) return SendClientMessage(playerid, VERMELHO, "USE /darlevel [ID] [SCORE]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "Jogador offline");
    SetPlayerScore(id, score);
    GetPlayerName(playerid, adm, sizeof(adm));
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(String, sizeof(String), "O Administrador %s Te Deu %d Scores", adm, score);
    SendClientMessage(playerid,VERMELHO, String);
    printf("O adm deu %s para o jogador %s %d scores", adm, Nome, score);
    PlayerInfo[id][Score]++;
    return 1;
}
Reply


Messages In This Thread
Score - by ZeZin - 07.03.2015, 15:25
Re: Score - by CaioTesio - 07.03.2015, 15:33
Re: Score - by DiegoLeo - 07.03.2015, 15:33
Re: Score - by ZeZin - 07.03.2015, 16:08

Forum Jump:


Users browsing this thread: