06.07.2010, 19:36
How to make commands for a certain level?
Like this:
if (strcmp(cmd, "/healme", true) ==0)
{
if(Pinfo[playerid][Vip_Level <= 1])
{
format(string, sizeof(string), "You have healed the victim with 100% health (+$100)");
SendClientMessage(playerid, COLOR_WHITE, string);
SetPlayerHealth(giveplayerid, 100.0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Je bent geen admin dus je mag dit niet gebruiken!");
}
return 1;
}
I get these errors.
I only found like if(Pinfo[playerid][Vip_Level] But I want to make commands for a certain level or for like level only for 2 or 3.
D:\joram server\gamemodes\Libertylife1.pwn(1507) : warning 213: tag mismatch
D:\joram server\gamemodes\Libertylife1.pwn(1507) : warning 213: tag mismatch
Like this:
if (strcmp(cmd, "/healme", true) ==0)
{
if(Pinfo[playerid][Vip_Level <= 1])
{
format(string, sizeof(string), "You have healed the victim with 100% health (+$100)");
SendClientMessage(playerid, COLOR_WHITE, string);
SetPlayerHealth(giveplayerid, 100.0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Je bent geen admin dus je mag dit niet gebruiken!");
}
return 1;
}
I get these errors.
I only found like if(Pinfo[playerid][Vip_Level] But I want to make commands for a certain level or for like level only for 2 or 3.
D:\joram server\gamemodes\Libertylife1.pwn(1507) : warning 213: tag mismatch
D:\joram server\gamemodes\Libertylife1.pwn(1507) : warning 213: tag mismatch