22.08.2016, 09:27
pawn Code:
C:\Users\Konstantinos\Desktop\samp037_svr_R2-1-1_win32\filterscripts\fs.pwn(56) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Konstantinos\Desktop\samp037_svr_R2-1-1_win32\filterscripts\fs.pwn(56) : error 017: undefined symbol "define"
C:\Users\Konstantinos\Desktop\samp037_svr_R2-1-1_win32\filterscripts\fs.pwn(56) : error 017: undefined symbol "user"
C:\Users\Konstantinos\Desktop\samp037_svr_R2-1-1_win32\filterscripts\fs.pwn(56) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Code:
#define UserPath "Users/%s.ini" /Will define user's account path. In this case, we will save it in Scriptfiles/Users. So create a file inside of your Scriptfiles folder called Users
Code:
#define UserPath "Users/%s.ini" //Will define user's account path. In this case, we will save it in Scriptfiles/Users. So create a file inside of your Scriptfiles folder called Users
pawn Code:
C:\Users\Konstantinos\Desktop\samp037_svr_R2-1-1_win32\filterscripts\fs.pwn(177) : warning 217: loose indentation
Code:
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 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; }
pawn Code:
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
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;
}
pawn Code:
C:\Users\Konstantinos\Desktop\samp037_svr_R2-1-1_win32\filterscripts\fs.pwn(605) : error 021: symbol already defined: "_y_utils_OnPlayerConnect"
pawn Code:
public OnPlayerConnect(playerid)
{
return 1;
}