#1

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,1480.9829,-1769.9470,18.795)
{
SetPlayerPos(playerid,388.8720,173.8050,1008.382 ;
return 1;
} //other enter commands go here if(player......
}
if (strcmp("/exit", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,388.8720,173 .8050,1008.382)
{
SetPlayerPos(playerid,1480.9829,-1769.9470,18.795;
return 1;
} //other exit commands go here if(player......
}
}

Im Using ZCMD but i want this to work but this command gives me a warning can you help me please?

Quote:

warning 209: function "zcmd_OnPlayerCommandText" should return a value

This Line that the warning shows is the last } at the end
Reply


Messages In This Thread
ZCMD - by WiseRice - 26.12.2012, 08:02
Re: ZCMD - by Lynn - 26.12.2012, 08:17

Forum Jump:


Users browsing this thread: 1 Guest(s)