Pwn Warning 203: symbol is never used: "OnPlayerCommandReceived"
#1

Код:
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)