Symbol is never used.
#1

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?
Reply
#2

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

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

public OnDialogResponse
Reply
#5

- Ignore -
Reply
#6

Yes, it worked.
thanks you all! :>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)