IsPlayerInRangeOfPoint Doesnt work -_-
#1

help me with this

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/buyweaps", true))
	{
    	if(IsPlayerInRangeOfPoint(playerid, 100.0, 292.2005,-35.0779,1001.5156))
    	{
   	 	SendClientMessage(playerid,0xFFFFFFf,"Working...");
    	}
    	return 1;
	}
	SendClientMessage(playerid, 0xFFFFFFAA,"you must in the ammunation store!");
	return 0;
}
whats wrong?? when i try to type buyweaps..
it will show:

[SERVER]Unknown Commands

-_-
please help me :3
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/buyweaps", true))
    {
        if(IsPlayerInRangeOfPoint(playerid, 100.0, 292.2005,-35.0779,1001.5156))
        {
        SendClientMessage(playerid,0xFFFFFFf,"Working...");
        }
        else
        {
            SendClientMessage(playerid, 0xFFFFFFAA,"you must in the ammunation store!");
        }
    }
    return 1;
}
EDITED
Reply
#3

NVM)) do what the dude above me said :O
Reply
#4

LOL... still don't work -_-"
Reply
#5

I edited my post.
Reply
#6

yeah already i edited too...

still don't work -_-"
Reply
#7

LOL... sorry... its working now.. thanks dude
Reply
#8

just simply add rang points and then simply define them
Reply
#9

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/buyweaps", true) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 100.0, 292.2005,-35.0779,1001.5156)) return SendClientMessage(playerid,0xFFFFFFf,"Working...");
        else return SendClientMessage(playerid, 0xFFFFFFAA,"you must in the ammunation store!");
    }
    return 1;
}
IDK anything about strcmp but this may work.

EDIT: lol
Reply
#10

i tell same thanks for giving a shape
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)