15.03.2015, 09:41
Hello.
I'am working on my "sex dialog".
So here are errors:
Mine OnDialogResponse:
Enum:
Defined:
Showplayerdialog:
I'am working on my "sex dialog".
So here are errors:
PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1120) : error 017: undefined symbol "musko"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1127) : error 017: undefined symbol "zensko"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1131) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1135) : warning 217: loose indentation
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1135) : error 014: invalid statement; not in switch
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1135) : warning 215: expression has no effect
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1135) : error 001: expected token: ";", but found ":"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1135) : error 029: invalid expression, assumed zero
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(1135) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
PHP код:
case DIALOG_SPOL:
{
if(!response) return Kick(playerid);
if(response)
switch(listitem)
{
//Otvaramo caseove
case 0:
{
new INI:File = INI_Open(UserPath(playerid));
INI_WriteInt(File,"Spol",musko);
INI_Close(File);
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Odabrali ste spol: muљko");
}
case 1:
{
new INI:File = INI_Open(UserPath(playerid));
INI_WriteInt(File,"Spol",zensko);
INI_Close(File);
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Odabrali ste spol: ћensko");
}
{
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Uspjesna registracija",""COL_WHITE"Poљtovani,uspjeљno ste registrirali novi account.\nZa vaљu sigurnost preporucavamo vam da odradite 'relog' kako bismo spremili podatke.\nUzivajte igrajuci na nasem serveru!","Uredu","");
}
}
PHP код:
enum pInfo
{
pPassword,
pSkin,
pSpol,
pScore,
pNovac,
pZemlja,
pSupporter,
pAdministrator,
pVip,
pUbojstva,
pBankNovac,
pBanovan,
pSmrti
};
new PlayerInfo[MAX_PLAYERS][pInfo];
PHP код:
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN 2
#define DIALOG_SPOL 5
#define DIALOG_SUCCESS_1 3
#define DIALOG_SUCCESS_2 4
PHP код:
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
if(PlayerInfo[playerid][pBanovan] == 1) return Ban(playerid);
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD," "COL_WHITE"Logiranje",""COL_WHITE"Molimo vas da pazljivo unesete tocnu lozinku.\nImate"COL_LIGHTBLUE" 30 sekundi "COL_WHITE" da unesete lozinku uprotivnom cete biti kikovani sa servera","Login","Izlaz");
}
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Registracija",""COL_WHITE"Upiљite vasu lozinku kako biste se registrirali na server.\nVazno je znati da"COL_LIGHTBLUE" WG zajednica"COL_WHITE" nece nikad odat vasu lozinku.\nAko imate dodatnih problema kontaktirajte nas na webu!\nWeb:"COL_EASY" www.WilderGaming.net","Registracija","Izlaz");
ShowPlayerDialog(playerid, DIALOG_SPOL, DIALOG_STYLE_LIST,"Odaberite spol","[1] Musko\n[2] Zensko","Odaberi","Izlaz");
GivePlayerMoney(playerid, 15000);
SetPlayerScore(playerid, 1);
}