03.11.2014, 15:59
Код:
public OnPlayerDisconnect ( playerid, reason ) { //Same as OnDialogResponse, we will save their stats inside of their user's account new INI : file = INI_Open ( Path ( playerid ) ) ; //will open their file //THIS INI_SetTag ( file, "Player's Data" ) ; //We will set a tag inside of user's account called "Player's Data" INI_WriteInt ( file, "AdminLevel" ,pInfo [ playerid ] [ Adminlevel ] ) ; //If you've set his/her admin level, then his/her admin level will be saved inside of his/her account INI_WriteInt ( file, "VIPLevel" ,pInfo [ playerid ] [ VIPlevel ] ) ; //As explained above INI_WriteInt ( file, "Money" ,GetPlayerMoney ( playerid ) ) ; //We will save his money inside of his account INI_WriteInt ( file, "Scores" ,GetPlayerScore ( playerid ) ) ; //We will save his score inside of his account INI_WriteInt ( file, "Kills" ,pInfo [ playerid ] [ Kills ] ) ; //As explained above INI_WriteInt ( file, "Deaths" ,pInfo [ playerid ] [ Deaths ] ) ; //As explained above INI_Close ( file ) ; //Now after we've done saving their data, we now need to close the file return 1 ; }
Код:
C:\Users\Andrijana\Desktop\fps\gamemodes\grandlarc.pwn(108) : error 001: expected token: ";", but found ":" C:\Users\Andrijana\Desktop\fps\gamemodes\grandlarc.pwn(108) : error 029: invalid expression, assumed zero C:\Users\Andrijana\Desktop\fps\gamemodes\grandlarc.pwn(108) : error 017: undefined symbol "file" C:\Users\Andrijana\Desktop\fps\gamemodes\grandlarc.pwn(108) : fatal error 107: too many error messages on one line