SA-MP Forums Archive
[Ajuda] error 017: undefined symbol "IsPlayerVIP" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] error 017: undefined symbol "IsPlayerVIP" (/showthread.php?tid=625565)



error 017: undefined symbol "IsPlayerVIP" - LukeCage - 03.01.2017

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;
}



Re: error 017: undefined symbol "IsPlayerVIP" - Meck - 03.01.2017

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;
}