C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(112) : error 036: empty statement C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(116) : error 017: undefined symbol "dini_Inset"
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME], file[256];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(gPlayerLogged[playerid] == 1);
{
dini_IntSet(file, "Score", PInfo[playerid][pScore]);
dini_IntSet(file, "Money", PInfo[playerid][pMoney]);
dini_Inset(file, "AdminLevel", PInfo[playerid][pAdminLevel]);
}
gPlayerLogged[playerid] = 0;
return 1;
}
|
if(gPlayerLogged[playerid] == 1); |
|
dini_IntSet(file, "Score", PInfo[playerid][pScore]); |
if(gPlayerLogged[playerid] == 1);
|
C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(293) : error 001: expected token: ";", but found "-identifier-" C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(293) : warning 202: number of arguments does not match definition C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(294) : warning 202: number of arguments does not match definition C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(295) : warning 202: number of arguments does not match definition C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(296) : warning 202: number of arguments does not match definition C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(301) : warning 217: loose indentation C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(310) : error 001: expected token: ")", but found "!" C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(310) : error 029: invalid expression, assumed zero C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(310) : warning 215: expression has no effect C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(310) : error 001: expected token: ";", but found ")" C:\Users\PART\Desktop\Desktop\samp03csvr_R2-2_win32\filterscripts\test.pwn(310) : fatal error 107: too many error messages on one line |
|
dini_Int(file, "Password", udb_hash(inputtext)); |
|
dini_Int(file, "Score", PInfo[playerid][pScore]); dini_Int(file, "Money", PInfo[playerid][pMoney]); dini_Int(file, "AdminLevel", PInfo[playerid][pAdminLevel]); |
|
if(dialogid == 2) |
|
if(udb_hash(inputtext) ! = tmp); |
|
Errors are from line 293 to 310.
The error in line 293 seems to be a missing ; in the line above, but to be sure, we need the code ! Show lines 285 to 320. |
if(dialogid == 1)
{
new name[MAX_PLAYER_NAME], file[256], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Hi you are not registered","You need to registered,Input your PW","Register","Kick Me");
dini_Create(file)
dini_Int(file, "Password", udb_hash(inputtext));
dini_Int(file, "Score", PInfo[playerid][pScore]);
dini_Int(file, "Money", PInfo[playerid][pMoney]);
dini_Int(file, "AdminLevel", PInfo[playerid][pAdminLevel]);
format (string, 128, "SYSTEM: You have succefully logged in with %s nickname and %s pass","Enjoy Playing", name, inputtext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
gPlayerLogged[playerid] = 1;
}
if(dialogid == 2)
{
new name[MAX_PLAYER_NAME], file[256], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), SERVER_USER_FILE, name);
if(!response) return Kick(playerid);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Hi you are registered","Cool dude now just in put your PW below","Login","Kick Me");
new tmp;
tmp = dini_Int(file, "Password");
if(udb_hash(inputtext) ! = tmp);
if(udb_hash(inputtext) != tmp)