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

Do you need to use it at all?
Reply
#3

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

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;
}
Reply
#5

Thanks mate!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)