[AJUDA]/Convidar ORG
#1

Seguinte, estou tentando adicionar o sistema de orgs auqi no gm ... porйm estou com problemas, ja quebrei a cabeзa com isso, com o comando /convidar :

pawn Код:
C:\Users\SHIELD\Desktop\SERVIDOR SAMP\Brasil Intense Live\gamemodes\Untitled.pwn(212) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Linha 212 a do RG:
pawn Код:
if (strcmp("/RG", cmdtext, true, 8) == 0)
    {
        RG(playerid);
        return 1;
    }
    return 0;
}

@EDIT :

Shick, atualizando conforme o seu ...
Reply
#2

Coloque essa variavel depois da enum Info

pawn Код:
new PlayerInfo[MAX_PLAYERS][Info];
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new tmp[128],cmd[128],idx;
if(strcmp(cmd, "/convidar", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        new PlayerB
        if(!strlen(tmp)) return SendClientMessage(playerid, -1, "Uso correto: /convidar [id]");
        new tmp[128],
        new cmd[128],
        PlayerB = strval(tmp);
        if(!IsPlayerConnected(playerid))return SendClientMessage(playerid, 0xFFFF00AA, "Este jogador nгo estб conectado");
        if(PlayerInfo[playerid][Taxistas] >=6)
        {
            PlayerInfo[PlayerB][Taxistas] = 1;
            SendClientMessage(playerid, 0xFFFF00AA, "Parabйns, vocк entrou para a organizaзгo : Taxistas");
            SetPlayerColor(PlayerB, 0xFFFF00AA);
            SetPlayerSkin(PlayerB, 255);
            return 1;
        }
        return 1;
    }

    if (strcmp("/RG", cmdtext, true, 8) == 0)
    {
        RG(playerid);
        return 1;
    }
    return 0;
}
Reply
#3

Shick, tirei o erro do Playerinfo jб ... havia me esquecido disso ...agora vou atualizar os erros aqui.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)