define prob
#4

thank you
Now i have just those errors

C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(129 ) : warning 202: number of arguments does not match definition
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(137 ) : warning 217: loose indentation
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(139 ) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(139 ) : error 017: undefined symbol "reason"
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(139 -- 141) : error 029: invalid expression, assumed zero
C:\Users\Sybinfo 56\Desktop\samp\gamemodes\UltimateFreeRoam.pwn(139 -- 141) : fatal error 107: too many error messages on one line

[pawno]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, ""WHITE"Registering...",""RED"You have entered an invalid password.\n"WHITE"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);
}
}

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,""WHITE"Success!",""GREEN"You have successfully logged in!","Ok");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""WHITE"Login",""RED"You have entered an incorrect password.\n"WHITE"Type your password below to login.","Login","Quit");
}
return 1;
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)) ;
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_Close(File);
return 1;
}[/pawno]
Reply


Messages In This Thread
define prob - by mehdi171996 - 07.12.2014, 08:45
Re : define prob - by mehdi171996 - 07.12.2014, 08:55
Re: define prob - by CutX - 07.12.2014, 09:11
Re : define prob - by mehdi171996 - 07.12.2014, 09:16
Re : define prob - by mehdi171996 - 07.12.2014, 09:19
Re: Re : define prob - by CutX - 07.12.2014, 09:34

Forum Jump:


Users browsing this thread: 1 Guest(s)