Invisible Command not working :(
#1

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;
}
Reply
#2

You forgot to define it
Reply
#3

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

Can you edit it and post SickAttack?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)