Quote:
Originally Posted by Jotapaulo
Eu segui o que ele disse aquela hora, ai dб esse erro:
pawn Code:
C:\Documents and Settings\Joгo Paulo\Desktop\Servidor Real Life 01-01\gamemodes\reallife.pwn(728) : error 010: invalid function or declaration C:\Documents and Settings\Joгo Paulo\Desktop\Servidor Real Life 01-01\gamemodes\reallife.pwn(3415) : error 017: undefined symbol "WantedLevel" C:\Documents and Settings\Joгo Paulo\Desktop\Servidor Real Life 01-01\gamemodes\reallife.pwn(3415) : warning 215: expression has no effect C:\Documents and Settings\Joгo Paulo\Desktop\Servidor Real Life 01-01\gamemodes\reallife.pwn(3415) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Joгo Paulo\Desktop\Servidor Real Life 01-01\gamemodes\reallife.pwn(3415) : error 029: invalid expression, assumed zero C:\Documents and Settings\Joгo Paulo\Desktop\Servidor Real Life 01-01\gamemodes\reallife.pwn(3415) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Fiz o que ele pediu, nгo sei se estб certo:
pawn Code:
//new WantedLevel[MAX_PLAYERS]; PlayerInfo[playerid][pWantedLevel];
|
New WantedLevel[MAX_PLAYERS];
Vocк pode deletar esta linha, mas nгo deve adicionar o PlayerInfo[playerid][pWantedLevel] aн.
Em seu
pInfo vocк adiciona o
pWantedLevel,
pawn Code:
public OnPlayerRegister
format(var, 64, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
public OnPlayerUpdate
format(var, 64, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var);
public OnPlayerLogin
if( strcmp( key , "WantedLevel" , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pWantedLevel] = strval( val ); }
/* Em seu gamemode vocк troca todas as variaveis WantedLevel[playerid]; por PlayerInfo[playerid][pWantedLevel]; e WantedLevel[i]; por PlayerInfo[i][pWantedLevel];, etc...*/