SA-MP Forums Archive
Where? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Where? (/showthread.php?tid=368678)



error :S - Vizi - 14.08.2012

Hi
Can somebody tell me where to put those things:

pawn Код:
enum PlayerInfo {
    email[50]//And all other you laready have
}
new pInfo[MAX_PLAYERS][PlayerInfo];
FOr this i know this need to put under PlayerREgister
right?
pawn Код:
ShowPlayerDialog(playerid,1461,DIALOG_STYLE_INPUT,"Email","Enter your email","OK","Cancel");
And this where?
OnDiaogResponse?

pawn Код:
if(dialogid == 1461)
{
    if(!response) return Kick(playerid);
    format(pInfo[playerid][email],50,"%s",inputtext);
    return 1;
}



Re: Where? - lamarr007 - 14.08.2012

Global variables on top of your script..
And dialogs functions under OnDialogResponse


Re: Where? - Vizi - 14.08.2012

Hey bro
i have those errors for this

pawn Код:
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(1055) : error 021: symbol already defined: "pInfo"
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(1162) : error 008: must be a constant expression; assumed zero
F:\Users\Daniel\Desktop\GamingClub RP\gamemodes\DreamWorld.pwn(1162) : error 021: symbol already defined: "PlayerInfo"
for this
pawn Код:
enum PlayerInfo {
    email[50]//And all other you laready have
}
new pInfo[MAX_PLAYERS][PlayerInfo];