SA-MP Forums Archive
Symbol is never used. - 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: Symbol is never used. (/showthread.php?tid=424732)



Symbol is never used. - Andriensis - 23.03.2013

Code:
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==DIALOG)
{
new stringa[128], name[24], ip[16], stringa2[128];
GetPlayerName(playerid,nome,sizeof(nome));
format(stringa,sizeof(stringa),”Utenti/%s”,nome);
new psw = dini_Get(stringa,"Password");
if (inputtext == psw)
{
new string[128];
SendClientMessage(playerid,GREY,"Sei loggato correttamente");
SpawnPlayer(playerid);
format(string,sizeof(string),"Utenti/%s",name);
noob[playerid] = dini_Int(stringa,"First-log")
if (noob == 0)
{
GetPlayerIp(playerid,ip,sizeof(ip));
format(stringa2,sizeof(stringa2),"Bentornato %s. Il tuo IP и: %s.",name,ip);
SendClientMessage(playerid,GREY,stringa2);
}
else if (noob == 1)
{
format(stringa2,sizeof(stringa2),"Benvenuto nel server, %s! Ora ci sara' un piccolo tutorial di orientamento iniziale.",name);
SendClientMessage(playerid,BLUE,stringa2);
dini_IntSet(string,"First-log",0);
}
else if (inputtext != psw)
{
ShowPlayerDialog(playerid,DIALOG,DIALOG_STYLE_INPUT,"Login","PASSWORD INCORRETTA \nImmetti la password per loggarti","Login","");
}
}
}
return 1;
}
Code:
prison.pwn(411) : warning 203: symbol is never used: "OnDialogResponse"
Could you help me?


Re: Symbol is never used. - Andriensis - 23.03.2013

Yea', I changed noob == 0 and noob == 1 with noob[playerid] == 0 and noob[playerid] == 1, and there's still that warning.


Re: Symbol is never used. - InfiniTy. - 23.03.2013

pawn Code:
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
should be
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])



Re: Symbol is never used. - Misiur - 23.03.2013

public OnDialogResponse


cessil - SilverKiller - 23.03.2013

- Ignore -


Re: Symbol is never used. - Andriensis - 23.03.2013

Yes, it worked.
thanks you all! :>