Make VIP command only?
#3

I used this code:
Код:
CMD:laseron(playerid, params[])
{
    if(PlayerInfo[playerid][pVIP] > 1)
		{
	SetPVarInt(playerid, "laser", 1);
 	SetPVarInt(playerid, "color", GetPVarInt(playerid, "color"));

 	else
    {
        SendClientMessage(playerid,-1,"Sorry, you are not a VIP and cannot use this feature.");
    }
  	return 1;}
}
But I get 1 error and 1 warning:
Код:
C:\Users\tommy\Desktop\Battlefield Server 1.8\gamemodes\battlefield.pwn(4148) : error 029: invalid expression, assumed zero
C:\Users\tommy\Desktop\Battlefield Server 1.8\gamemodes\battlefield.pwn(4153) : warning 209: function "cmd_laseron" should return a value
Reply


Messages In This Thread
Make VIP command only? - by Eminem 2ka9 - 08.12.2012, 22:41
Re: Make VIP command only? - by Ironboy - 08.12.2012, 23:26
Re: Make VIP command only? - by Eminem 2ka9 - 09.12.2012, 00:13
Re: Make VIP command only? - by Randy More - 09.12.2012, 01:17
Re: Make VIP command only? - by Baumann - 10.12.2012, 12:37
Re: Make VIP command only? - by tsonn1 - 10.12.2012, 12:45
Re: Make VIP command only? - by niels44 - 10.12.2012, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)