[Problem] warning 209 - 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)
+--- Thread: [Problem] warning 209 (
/showthread.php?tid=298836)
[Problem] warning 209 -
Eduard93 - 22.11.2011
Can someone help me please?
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/buyclothes", true) == 0)
{
if(PlayerToPoint(20.0, playerid,207.6528,-105.5290,1005.1328)) <---- Line 40
{
new listitems[] = "{FFFFFF}1\t{55EE55}headgear\n{FFFFFF}2\t{55EE55}glasses\n{FFFFFF}3\t{55EE55}bandanna\n{FFFFFF}4\t{55EE55}masks\n{FFFFFF}\t{55EE55}Or\n{FFFFFF}6\t{55EE55}remove clothes";
ShowPlayerDialog(playerid,200,DIALOG_STYLE_LIST,"{448844}Clothes by Eduard:",listitems,"wear","cancel");
return 1;
}
else
{
GameTextForPlayer(playerid,"~r~~h~You must be at Binco",3000,3);
return 1;
}
}
return 0;
}
Код:
(40) : warning 209: function "PlayerToPoint" should return a value
But i put the return function.
Re: [Problem] warning 209 - Sinc - 22.11.2011
Yes, but the PlayerToPoint function requires a return value.
Re: [Problem] warning 209 -
[MG]Dimi - 22.11.2011
Show us
Re: [Problem] warning 209 -
Eduard93 - 22.11.2011
EDIT:
I used "IsPlayerInRangeOfPoint" instead "PlayerToPoint" and it's ok, thanks!