11.06.2016, 16:04
PHP код:
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(500) : error 040: duplicate "case" label (value 1)
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(520) : error 040: duplicate "case" label (value 2)
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(527) : warning 202: number of arguments does not match definition
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(527) : error 017: undefined symbol "bExtra"
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(529) : error 017: undefined symbol "DIALOG_SUCCESSO_2"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
case DIALOG_REGISTRAZIONE:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTRAZIONE, DIALOG_STYLE_INPUT,""COL_WHITE"Registrazione...",""COL_RED"Hai inserito una password errata.\n"COL_WHITE"Inserisci una password per creare un account.","Registrati","Esci");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Soldi",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Uccisioni",0);
INI_WriteInt(File,"Morti",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_SUCCESSO_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Sei loggato!",""COL_GREEN"Buono! Il Sistema Y_INI funziona corettamente. Rilogga per aggiornare il tuo stato!","Ok","");
}
}
case DIALOG_LOGIN:
{
if ( !response ) return Kick ( playerid );
if( response )
{
if(udb_hash(inputtext) == PlayerInfo[playerid][pPassword])
{
INI_ParseFile(UserPath(playerid, "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pSoldi]);
ShowPlayerDialog(playerid, DIALOG_SUCCESSO_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Successo!",""COL_GREEN"Sei loggato!","Ok","");