[Ajuda] error 017: undefined symbol "IsPlayerVIP"
#1

alguem ajda com esse erro ?

estou usando esse IsPlayerVip nesse comando

Код:
CMD:equiparmochila(playerid, params[])
{
    new
        backpackitem,
        containerid,
        tmpitem;
        
        if(IsPlayerVIP(playerid))

		backpackitem = CreateItem(item_LargeBackpack);
		containerid = GetItemArrayDataAtCell(backpackitem, 1);

		GivePlayerBag(playerid, backpackitem);

        tmpitem = CreateItem(item_Wrench);
        AddItemToContainer(containerid, tmpitem);
        tmpitem = CreateItem(item_Screwdriver);
        AddItemToContainer(containerid, tmpitem);
        tmpitem = CreateItem(item_Hammer);
        AddItemToContainer(containerid, tmpitem);
        tmpitem = CreateItem(item_DoctorBag);
        AddItemToContainer(containerid, tmpitem);
	return 1;
}
Reply
#2

FAЗA ASSIM, TOPO DA GM
PHP код:
enum playerinfo
{
  
pVip,
};
new 
pInfo[MAX_PLAYERS][playerinfo]; 
Код:
CMD:equiparmochila(playerid, params[])
{
    new backpackitem, containerid, tmpitem;
        
        if(pInfo[playerid][pVip] == 1)
{
		backpackitem = CreateItem(item_LargeBackpack);
		containerid = GetItemArrayDataAtCell(backpackitem, 1);

		GivePlayerBag(playerid, backpackitem);

        tmpitem = CreateItem(item_Wrench);
        AddItemToContainer(containerid, tmpitem);
        tmpitem = CreateItem(item_Screwdriver);
        AddItemToContainer(containerid, tmpitem);
        tmpitem = CreateItem(item_Hammer);
        AddItemToContainer(containerid, tmpitem);
        tmpitem = CreateItem(item_DoctorBag);
        AddItemToContainer(containerid, tmpitem);
}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)