Problem with faction leadering
#1

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"
Reply


Messages In This Thread
Problem with faction leadering - by ImMuslimNigga - 29.12.2015, 16:05
Re: Problem with faction leadering - by AndySedeyn - 29.12.2015, 16:09
Re: Problem with faction leadering - by ImMuslimNigga - 30.12.2015, 23:06
Re: Problem with faction leadering - by AndySedeyn - 30.12.2015, 23:29
Re: Problem with faction leadering - by ImMuslimNigga - 31.12.2015, 03:40

Forum Jump:


Users browsing this thread: 1 Guest(s)