17.09.2015, 13:03
Code:
error 022: must be lvalue (non-constant) error 029: invalid expression, assumed zero error 001: expected token: ";", but found ")"
Code:
CMD:cuff(playerid, params[]) { if(GetPlayerClass[playerid] == COP_CLASS) { if(GetPlayerWantedLevel(playerid) => 3)) return SendClientMessage(playerid, -1, "You can't cuff that player"); { SetPlayerSpecialAction(playerid,24); SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000); } } return 1; } CMD:arrest(playerid, params[]) { if(GetPlayerClass[playerid] == COP_CLASS) { if(GetPlayerWantedLevel(playerid) => 3)) return SendClientMessage(playerid, -1, "Player isn't wanted!"); { SetPlayerInterior(id, 3);//sets player interior SetPlayerVirtualWorld(playerid, 10);//sets player vw SetPlayerFacingAngle(playerid, 360.0);//player angle SetPlayerPos(id, 197.5662, 175.4800, 1004.0);//player pos SetPlayerHealth(id, 9999999999.0);//player cannot be killed ResetPlayerWeapons(playerid);//resets his weapons JailTimer[playerid] = 60000; SetPlayerWantedLevel(playerid, 0); } } return 1; }