SA-MP Forums Archive
Command Problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Command Problem (/showthread.php?tid=256610)



Command Problem - DDodo - 21.05.2011

pawn Код:
CMD:chdoor(playerid, params[]){
    if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 2) {
        if(IsPlayerInRangeOfPoint(playerid, 4.5, 371.9613,166.6872,1008.3828)) {
            if(CHDoor == 0) {
                MoveDynamicObject(CHDoor, 371.2587890625, 166.46171569824, 1007.3776245117, 3.5);
                CHDoor = 1;
            }
            else {
                MoveDynamicObject(CHDoor, 371.25970458984, 166.59274291992, 1007.3776245117, 3.5);
                CHDoor = 0;
            }
        }
    }
}
What's wrong with the command? It just says SERVER: Unknown Command, but it compiles fine...


Re: Command Problem - xRyder - 21.05.2011

Return it as true?