Commands don't work
#1

so i have made some commands like:
Код:
CMD:opengate(playerid,params[])
{
    if(P_Data[playerid][pAdmin] >= 1)
    {
    	if(IsPlayerInRangeOfPoint(playerid, 15.0, -2655.1001000,-219.7000000,6.6000000))
    	{
        	MoveObject(gate,-2655.1001000,-219.7000000,-4.2000000,5);
        	return 1;
    	}
	}
	return 1;
}
for some reason when i try to type it ingame it says Unknown Command
Reply
#2

If(IsPlayerInRangeOfPoint(...)) it will open,if he is not,CMD will return as unkown
Reply
#3

I am near the gate and it sill says the same
Reply
#4

PHP код:
CMD:opengate(playerid,params[])
{
    if(
P_Data[playerid][pAdmin] >= 1)
    {
        if(
IsPlayerInRangeOfPoint(playerid15.0, -2655.1001000,-219.7000000,6.6000000))
        {
            
MoveObject(gate,-2655.1001000,-219.7000000,-4.2000000,5);
        }
    }
    return 
1;

Reply
#5

It doesn't work..Every command i have doesn't work.Anyone know a solution on this?
Reply
#6

Ehm Show us your OnPlayerCommandText? Seems like something returning 0 there.
Reply
#7

I am using zcmd
Reply
#8

Use the plugin CrashDetect to troubleshoot this problem more accurately.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)