SA-MP Forums Archive
Error on yini system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error on yini system (/showthread.php?tid=544714)



Error on yini system - Kruno88 - 03.11.2014

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



Re: Error on yini system - Stinged - 03.11.2014

It should be new INI:file not INI : file


Re: Error on yini system - Eth - 03.11.2014

nvm


Re: Error on yini system - Kruno88 - 03.11.2014

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


Re: Error on yini system - Kruno88 - 03.11.2014

Anyone here to help?


Re: Error on yini system - gurmani11 - 03.11.2014

Show your PATH define or stock