SA-MP Forums Archive
Invisible Command not working :( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Invisible Command not working :( (/showthread.php?tid=578724)



Invisible Command not working :( - WaJeeH - 21.06.2015

Hey guyz,I have tried fixing this command and it's till not working what's wrong with it if you can help Edit it and put it down there.
Код:
COMMAND:invisible(playerid,params[])
{
	if(PlayerInfo[playerid][pAdminlevel] > 0)
	{
		if(PlayerInfo[playerid][pHiding] == 0)
		{
		    PlayerInfo[playerid][pvColor] = GetPlayerColor(playerid);
			SetPlayerColor(playerid, 0xFFFFFF00);
   			GameTextForPlayer(playerid, "~n~~n~~n~~n~~g~Invisible!",2500,3);
   			PlayerInfo[playerid][pHiding] = 1;

   			if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
   			{
   	    		new Int1 = GetPlayerInterior(playerid);
   	    		LinkVehicleToInterior(GetPlayerVehicleID(playerid),Int1+1);
    		}
    		return 1;
		}
		else SendClientMessage(playerid, COLOR_ERROR,"You are Already Invisible.");
	}
	else SendClientMessage(playerid,COLOR_ERROR,""ERROR_MSG"");
	return 1;
}



Re: Invisible Command not working :( - XBrianX - 21.06.2015

You forgot to define it


Re: Invisible Command not working :( - SickAttack - 21.06.2015

You are missing a curly brace where "if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)" is.


Re: Invisible Command not working :( - WaJeeH - 21.06.2015

Can you edit it and post SickAttack?