Thread: [Ajuda] Erro sistema de orgs
View Single Post
Old 19/08/2019, 07:50 PM   #7
SrGhost
Big Clucker
 
SrGhost's Avatar
 
Join Date: Jun 2019
Location: Uberlandia-MG
Posts: 71
Reputation: 5
Default Re: Erro sistema de orgs

Quote:
Originally Posted by RayanSanty View Post
PHP Code:
enum PlayerDados 

    
Organizacao
    
Cargo
}; 
Use isto
usei eo erro continua

Quote:
Originally Posted by oRaphael View Post
Troque pelo o meu código:

PHP Code:
enum PlayerDados
{
    
Organizacao,
    
Cargo
}
new 
pDados[MAX_PLAYERS][PlayerDados]; 
PHP Code:
public OnPlayerConnect(playerid)
{
    new 
arquivo[34], playername[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayernamesizeof(playername));
    
format(arquivosizeof(arquivo), "Contas/%s"playername);
    
pDados[playerid][Organizacao] = DOF2_GetInt(arquivo"Organizacao");
    
pDados[playerid][Cargo] = DOF2_GetInt(arquivo"Cargo");
    
SpawnPlayer(playerid);
    return 
1;

nao mudou ainda sim o erro continua



PHP Code:
C:\Users\SrGhost\Desktop\BVS 2.0\gamemodes\AndroidFR.pwn(305) : error 029invalid expressionassumed zero
C
:\Users\SrGhost\Desktop\BVS 2.0\gamemodes\AndroidFR.pwn(305) : warning 215expression has no effect
C
:\Users\SrGhost\Desktop\BVS 2.0\gamemodes\AndroidFR.pwn(305) : error 001expected token";"but found "]"
C:\Users\SrGhost\Desktop\BVS 2.0\gamemodes\AndroidFR.pwn(305) : error 029invalid expressionassumed zero
C
:\Users\SrGhost\Desktop\BVS 2.0\gamemodes\AndroidFR.pwn(305) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


4 Errors

SrGhost is offline   Reply With Quote