SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/03/2013, 03:24 PM   #1
Andriensis
Little Clucker
 
Join Date: Oct 2012
Posts: 41
Reputation: -7
Default Symbol is never used.

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?
Andriensis is offline   Reply With Quote
Old 23/03/2013, 03:26 PM   #2
Andriensis
Little Clucker
 
Join Date: Oct 2012
Posts: 41
Reputation: -7
Angry Re: Symbol is never used.

Yea', I changed noob == 0 and noob == 1 with noob[playerid] == 0 and noob[playerid] == 1, and there's still that warning.
Andriensis is offline   Reply With Quote
Old 23/03/2013, 03:31 PM   #3
InfiniTy.
High-roller
 
InfiniTy.'s Avatar
 
Join Date: Oct 2012
Location: Romania,Galați
Posts: 1,251
Reputation: 119
Default Re: Symbol is never used.

pawn Code:
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
should be
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
InfiniTy. is offline   Reply With Quote
Old 23/03/2013, 03:32 PM   #4
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,528
Reputation: 556
Default Re: Symbol is never used.

public OnDialogResponse
Misiur is offline   Reply With Quote
Old 23/03/2013, 03:32 PM   #5
SilverKiller
Gangsta
 
SilverKiller's Avatar
 
Join Date: Nov 2012
Location: =>space<=
Posts: 626
Reputation: 56
Default

- Ignore -
__________________
I'm working on an admin system called skAdmin, 40% finished.


Scripting simple admin systems with some commands for free, PM me for more info.

I also need testers for my skAdmin filterscript, if you want to test, you are welcome!, just send me a pm.

Quote:
Originally Posted by cessil View Post
I quit school and became a professional sa-mp player
Guys, if i helped anyone incorrectly, please correct me, thank you.

Last edited by SilverKiller; 23/03/2013 at 03:36 PM. Reason: Ignore this please i typed something wrong
SilverKiller is offline   Reply With Quote
Old 23/03/2013, 03:40 PM   #6
Andriensis
Little Clucker
 
Join Date: Oct 2012
Posts: 41
Reputation: -7
Default Re: Symbol is never used.

Yes, it worked.
thanks you all! :>
Andriensis is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Symbol never used Pawnstar Scripting Help 1 16/11/2012 09:46 AM
Symbol never used? TaLhA XIV Scripting Help 6 24/08/2012 10:55 PM
[HELP]Undefined symbol errors when symbol is defined PCheriyan007 Help Archive 9 07/07/2011 01:09 AM
Symbol* Jamal' Help Archive 2 20/07/2010 08:03 AM
symbol is never used Mechscape Help Archive 3 09/12/2009 05:35 PM


All times are GMT. The time now is 10:23 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.