[Ajuda] Ajuda STOCK! - 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: [Ajuda] Ajuda STOCK! (
/showthread.php?tid=501357)
Ajuda STOCK! -
Nork - 17.03.2014
Galera, me ajuda...
PHP код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
    if(GetPVarInt(playerid,"Escolhendo_Classe")==1)
    {
        SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}» {999999}Vocк nгo estб {00FF00}logado!");
        return 0;
    }
    return 1;
}Â
Como bloquear pro player qual stock coloco?
Re: Ajuda STOCK! -
yNexus - 17.03.2014
PHP код:
new TaLogado[MAX_PLAYERS];
public OnPlayerDisconnect(playerid, reason)
{
    TaLogado[playerid] = 0;
    return 1;
}
public OnPlayerSpawn(playerid)
{
    TaLogado[playerid] = 1;
    return 1;
}
public OnPlayerText(playerid, text[])
{
    if(TaLogado[playerid] == 0)
    {
        SendClientMessage(playerid, 0x00FF00FF, "{FFFFFF}» {999999}Vocк nгo estб {00FF00}logado!");
        return 0;
    }
    return 1;
}Â
Re: Ajuda STOCK! -
Nork - 17.03.2014
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(23) : error 017: undefined symbol "MAX_PLAYERS"
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(23) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(333) : warning 217: loose indentation
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(507) : warning 217: loose indentation
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(510) : error 010: invalid function or declaration
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(514) : error 021: symbol already defined: "SendClientMessage"
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(517) : error 010: invalid function or declaration
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(520) : error 010: invalid function or declaration
C:\Users\Caio\Desktop\TOM 3.3.1\gamemodes\TOM.pwn(754) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Afs :\
Re: Ajuda STOCK! -
bruxo00 - 17.03.2014
Colocou dentro de alguma callback?
Re: Ajuda STOCK! -
DannielCooper - 17.03.2014
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
  TaLogado[playerid] = 0;
  return 1;
}
Re: Ajuda STOCK! -
Nork - 17.03.2014
Eu consegui
Obrigado a todos.