29.12.2015, 16:05
I have a little problem, i dont know how to define this command for the Faction leaders..
Код:
CMD:commanderbateau(playerid,params[]) { if(PlayerInfo[playerid][pFacleader] > 2 || PlayerInfo[playerid][pFacleader] > 3 || PlayerInfo[playerid][pFacrank] >= 8) } // 318 for(new i = 0; i < MAX_PLAYERS; i++) { if(ControllingShip[i] == 1) return SendClientMessage(playerid, -1,"Le navire est actuellement dйtenu а commande par quelqu'un d'autre."); } Camera = CreateObject(0, 0,0,0,0,0,0); AttachCameraToObject(playerid, Camera); AttachObjectToVehicle(Camera, PirateShip,0,-35,23,0.000000,0.000000,0.0); PutPlayerInVehicle(playerid, PirateShip, 0); ControllingShip[playerid] = 1; SendClientMessage(playerid, -1,"Tape /quitterbateau ou appuie sur 'F' si tu veux arrкter de commander ce navire."); return 1; }
Код:
C:\Users\..\Desktop\Login and Register Sytem Y_INI\gamemodes\test.pwn(318) : error 029: invalid expression, assumed zero C:\Users\..\Desktop\Login and Register Sytem Y_INI\gamemodes\test.pwn(318 -- 319) : warning 215: expression has no effect C:\Users\..\Desktop\Login and Register Sytem Y_INI\gamemodes\test.pwn(319) : error 001: expected token: ";", but found "for"