I have problem
#4

Quote:
Originally Posted by Yashas
Посмотреть сообщение
You actually tried to assign a value to newcar in your last condition in your if statement which must have caused the unintended assignment warning. Just for your information, it is possible to assign values within the if statement which when put into proper use can make your code a little faster.

Код:
if((newcar = !newcar)) //Toggle newcar
{
   //will be executed if newcar was false
}
In your case, using a switch might make the code significantly faster.

Код:
switch(newcar)
{
	case 106,107,108,109,144,145,146,148:
	{
	    if(PlayerInfo[playerid][pMember] != 13 && PlayerInfo[playerid][pLeader] != 13)
		{
			SendClientMessage(playerid,COLOR_WHITE,"Nu esti membru {E4895E}Orleans Crime Family{FFFFFF}!");
			RemovePlayerFromVehicle(playerid);
		}
		if(newcar == 105 && PlayerInfo[playerid][pRank] < 4)
		{
			SendClientMessage(playerid,COLOR_WHITE,"Iti trebuie {E4895E}rank 4{FFFFFF}!");
			RemovePlayerFromVehicle(playerid);
		}
	}
}



I LOVE YOU THX MAN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
Reply


Messages In This Thread
I have problem - by tomaytb - 26.07.2015, 19:27
Re: I have problem - by TwinkiDaBoss - 26.07.2015, 19:31
Re: I have problem - by Yashas - 27.07.2015, 09:43
Re: I have problem - by tomaytb - 27.07.2015, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)