[Ajuda] Ajuda STOCK!
#1

Galera, me ajuda...

PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    if(
GetPVarInt(playerid,"Escolhendo_Classe")==1)
    {
        
SendClientMessage(playerid0x00FF00FF"{FFFFFF}» {999999}Vocк nгo estб {00FF00}logado!");
        return 
0;
    }
    return 
1;

Como bloquear pro player qual stock coloco?
Reply
#2

PHP код:
new TaLogado[MAX_PLAYERS];

public 
OnPlayerDisconnect(playeridreason)
{
    
TaLogado[playerid] = 0;
    return 
1;
}

public 
OnPlayerSpawn(playerid)
{
    
TaLogado[playerid] = 1;
    return 
1;
}


public 
OnPlayerText(playeridtext[])
{
    if(
TaLogado[playerid] == 0)
    {
        
SendClientMessage(playerid0x00FF00FF"{FFFFFF}» {999999}Vocк nгo estб {00FF00}logado!");
        return 
0;
    }
    return 
1;

Reply
#3

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 :\
Reply
#4

Colocou dentro de alguma callback?
Reply
#5

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    TaLogado[playerid] = 0;
    return 1;
}
Reply
#6

Eu consegui Obrigado a todos.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)