C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(1824) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(1824) : warning 215: expression has no effect
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(1824) : error 001: expected token: ";", but found "-string-"
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(1824) : warning 215: expression has no effect
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(1824) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(1824) : 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.
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_CRIMSON"Login",""COLOR_CRIMSON"Type your password below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_CRIMSON"Registering...",""COLOR_CRIMSON"Type your password below to register a new account.","Register","Quit");
}
return 1;
}
return 1;
}
#define COLOR "{RRGGBB}"
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(2152) : error 029: invalid expression, assumed zero
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(2152) : error 029: invalid expression, assumed zero
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(2202) : warning 225: unreachable code
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_TESTING"Registering...",""COL_TESTING"You have entered an invalid password.\n"COL_TESTING"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_TESTING"Success!",""COL_TESTING"Great! Your Y_INI system works perfectly. Relog to save your stats!","Ok","");
}
}
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_TESTING"Success!",""COL_TESTING"You have successfully logged in!","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_TESTING"Login",""COL_TESTING"You have entered an incorrect password.\n"COL_TESTING"Type your password below to login.","Login","Quit");
}
return 1;
}
}
}
return 1;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_TESTING"Registering...",""COL_TESTING"You have entered an invalid password.\n"COL_TESTING"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_TESTING"Success!",""COL_TESTING"Great! Your Y_INI system works perfectly. Relog to save your stats!","Ok","");
}
}
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_TESTING"Success!",""COL_TESTING"You have successfully logged in!","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_TESTING"Login",""COL_TESTING"You have entered an incorrect password.\n"COL_TESTING"Type your password below to login.","Login","Quit");
}
return 1;
}
}
}
return 1;
}
C:\Users\infogenie\Desktop\Addictive Trainers V2.6\gamemodes\own.pwn(2198) : warning 225: unreachable code
return 1;
}
pawn Код:
here is the line 2198 pawn Код:
|