SA-MP Forums Archive
Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived" - 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: Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived" (/showthread.php?tid=138335)



Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived" - Ragidon - 01.04.2010

Код:
OnPlayerCommandReceived(playerid, cmdtext[])


COMMAND:jointeam( playerid, params[])

{
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your Team", "Team 1 - Police Department \nTeam 2 - Fire Department \nTeam 3 - Medical Department \nTeam 4 - N/A \nTeam 5 - N/A \nTeam 6 - N/A \nTeam 7 - N/A \nTeam 8 - N/A \nTeam 9 - N/A \nTeam 10 - N/A","Change","Cancel");
	return 1;
}
If I use OnPlayerCommandText, I get this:


Код:
public OnPlayerCommandText(playerid,cmdtext[])


COMMAND:jointeam( playerid, params[])

{
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your Team", "Team 1 - Police Department \nTeam 2 - Fire Department \nTeam 3 - Medical Department \nTeam 4 - N/A \nTeam 5 - N/A \nTeam 6 - N/A \nTeam 7 - N/A \nTeam 8 - N/A \nTeam 9 - N/A \nTeam 10 - N/A","Change","Cancel");
	return 1;
}
Код:
fgawg.pwn(109) : error 029: invalid expression, assumed zero

Some help would be great.



Re: Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived" - MadeMan - 01.04.2010

Do you need to use it at all?


Re: Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived" - Ragidon - 01.04.2010

Well, yes. Why else would I post it here?


Re: Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived" - MadeMan - 01.04.2010

I would remove it and just leave

pawn Код:
COMMAND:jointeam( playerid, params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your Team", "Team 1 - Police Department \nTeam 2 - Fire Department \nTeam 3 - Medical Department \nTeam 4 - N/A \nTeam 5 - N/A \nTeam 6 - N/A \nTeam 7 - N/A \nTeam 8 - N/A \nTeam 9 - N/A \nTeam 10 - N/A","Change","Cancel");
    return 1;
}



Re: Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived" - Ragidon - 01.04.2010

Thanks mate!