PDA

View Full Version : Symbol is never used.


Andriensis
23/03/2013, 03:24 PM
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_INPU T,"Login","PASSWORD INCORRETTA \nImmetti la password per loggarti","Login","");
}
}
}
return 1;
}

prison.pwn(411) : warning 203: symbol is never used: "OnDialogResponse"

Could you help me?

Andriensis
23/03/2013, 03:26 PM
Yea', I changed noob == 0 and noob == 1 with noob[playerid] == 0 and noob[playerid] == 1, and there's still that warning.

InfiniTy.
23/03/2013, 03:31 PM
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
should be
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

Misiur
23/03/2013, 03:32 PM
public OnDialogResponse

SilverKiller
23/03/2013, 03:32 PM
- Ignore -

Andriensis
23/03/2013, 03:40 PM
Yes, it worked.
thanks you all! :>