SA-MP Forums Archive
[HELP!] Dialog Response - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP!] Dialog Response (/showthread.php?tid=217741)



[HELP!] Dialog Response - alanhutch - 28.01.2011

Help!
I do not compile!
What is wrong? I crash pawnocc help me!
if(dialogid == 2105 && response)
{
switch(listitem)
{
case 0:
{
if(IsPlayerConnected(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: Sei Giа loggato!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
case 1:
{
ShowPlayerDialog(playerid,2105,DIALOG_STYLE_INPUT, "Password Errata!","Prego inserire la password:", "Ok","Indietro");
}
}
}