Error on yini system
#1

Код:
  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
Reply
#2

It should be new INI:file not INI : file
Reply
#3

nvm
Reply
#4

Quote:
Originally Posted by Stinged
Посмотреть сообщение
It should be new INI:file not INI : file
No...Still same errors.
Reply
#5

Anyone here to help?
Reply
#6

Show your PATH define or stock
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)