03.01.2011, 04:46
Eu ia explicar igual ao Wozie no otro topico sу prescisava saber como que era o seu PlayerInfo ._.
Code:
enum pInfo { pWantedLevel, }; new PlayerInfo[MAX_PLAYERS][pInfo]; public OnPlayerRegister format(var, 32, "WantedLevel=%d\n",PlayerInfo[playerid][pWantedLevel]);fwrite(hFile, var); public OnPlayerUpdate format(var, 32, "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 ); } /*ai no gamemode vocк troca a variavel WantedLevel[MAX_PLAYERS]; por PlayerInfo[playerid][pWantedLevel];*/