/setprof
#1

pawn Код:
new valordaprof;
    if(strcmp(cmd, "/setprof", true) == 0) {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, BRANCO, "(AJUDA) /setprof [playerid] [profid]");
        giveplayerid = strval(tmp);
        if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, VERMELHO, "(ERROR) Jogador nгo conectado");
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, BRANCO, "(AJUDA) /setprof [playerid] [profid]");
            return 1;
        }
        valordaprof = strval(tmp);
        gTeam[giveplayerid] == valordaprof;
        return 1;
    }
Porque nгo estб funfando
Reply
#2

pawn Код:
if(strcmp(cmd, "/setprof", true) == 0)
    {
        new valordaprof;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, BRANCO, "(AJUDA) /setprof [playerid] [profid]");
        giveplayerid = strval(tmp);
        tmp = strtok(cmdtext, idx);
        if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, VERMELHO, "(ERROR) Jogador nгo conectado");
        if(!strlen(tmp)) return SendClientMessage(playerid, BRANCO, "(AJUDA) /setprof [playerid] [profid]");
        valordaprof = strval(tmp);
        gTeam[giveplayerid] = valordaprof;
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)