12.03.2013, 14:53
I got these errors :
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
enum:
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
error 017: undefined symbol "PlayerInfo"
enum:
Код:
enum P_ENUM { pKills, pDeaths, pMoney, pAdmin } stock USER_FILE(playerid) { new STR[ 128 ], P_NAME[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, P_NAME, sizeof ( P_NAME ) ); format( STR, sizeof ( STR ), USER_FILE_PATH, P_NAME); return STR; } stock Load_Player_Stats(playerid) { PlayerInfo[ playerid ][ pKills ] = DOF2_GetInt( USER_FILE( playerid ),"Kills"); PlayerInfo[ playerid ][ pDeaths ] = DOF2_GetInt( USER_FILE( playerid ),"Deaths"); PlayerInfo[ playerid ][ pMoney ] = DOF2_GetInt( USER_FILE( playerid ),"Money"); PlayerInfo[ playerid ][ pAdmin ] = DOF2_GetInt( USER_FILE( playerid ),"AdminLevel"); GivePlayerMoney(playerid, PlayerInfo[ playerid ][ pMoney ]); }