SA-MP Forums Archive
/setprof - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: /setprof (/showthread.php?tid=253343)



/setprof - JOKERBOY - 06.05.2011

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


Re: /setprof - Josma_cmd - 06.05.2011

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;
    }