Help PLS
#1

Код:
  if(strcmp(cmd,"/fbio",true)==0)
	{
	  if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pAdmin] == 1338)//E vidite ove brojeve == 5 to su vam brojevi organizacije te brojeve promjenite u organizaciju zelite po zelji.
	  {
			MoveObject(fbivrata, 283.495544, -1542.871216, 20.681459,4.000);// Kordinate otvorene kapijeCreateObject(980, 283.495544, -1542.871216, 20.681459, 0.0000, 0.0000, 326.2500);//otprta
			
			SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata FBI-a.");
		}
		else
		{
			SendClientMessage(playerid, COLOR_RED, "Nisi Clan FBI-a.");
		}
		return 1;
	}
	if(strcmp(cmd,"/fbic",true)==0)
	{
	  if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] == 1338)// isto tako i ovdje promjenite brojeve
	  {
			MoveObject(fbivrata, 283.000092, -1542.625732, 26.421503,4.000 ); //kordinate zatvorene kapije

			SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata FBI-a.");
    } //that's 8499 line
		else
		{ 
			SendClientMessage(playerid, COLOR_RED, "Nisi Clan FBI-a.");
		}
		return 1;
	  }
Reply
#2

warning 217 means that there are too many spaces.
Which means

This is an example where I would get 2 217 warnings.

Код:
	if(strcmp(cmdtext, "/kill", true) == 0)
	{
		             SetPlayerHealth(playerid,0.0);
		             return 1;
	}
You see the SetPlayerHealth and return1; are too right. So how to fix ? All the lines that have this warning; delete the spaces. Compare to other commands you have near. Which means 4 warnings gone.

I'd fix it like this
Код:
	if(strcmp(cmdtext, "/kill", true) == 0)
	{
		SetPlayerHealth(playerid,0.0);
		return 1;
	}

For the line 8449. I don't know which one is it but seeing from the error, try to replace '}' with the ';'
Reply
#3

I'd fix it.. tnx anyway
Reply
#4

I helped because you asked for it.. Nvm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)