18.07.2015, 22:50
PHP код:
CMD:equiparvip(playerid, params[])
{
new
backpackitem,
containerid,
tmpitem;
if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, Branco, "Vocк nгo й Vip ou nгo tem level suficiente!");
{
backpackitem = CreateItem(item_Backpack);//Mochila Media
containerid = GetItemExtraData(backpackitem);
GivePlayerBag(playerid, backpackitem);
tmpitem = CreateItem(item_Wrench);//Chave Inglesa
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Screwdriver);//Chave de Fenda
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Hammer);//Martelo
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_DoctorBag);//Maleta de Doutor
AddItemToContainer(containerid, tmpitem);
SendClientMessage(playerid, AZUL_CLARO, "Vocк pegou seus equipamentos VIP!");
return 0;
}
else if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Vocк nгo й Vip ou nгo tem level suficiente!");
{
backpackitem = CreateItem(item_Backpack);//Mochila Media
containerid = GetItemExtraData(backpackitem);
GivePlayerBag(playerid, backpackitem);
tmpitem = CreateItem(item_Wrench);//Chave Inglesa
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Screwdriver);//Chave de Fenda
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_Hammer);//Martelo
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_DoctorBag);//Maleta de Doutor
AddItemToContainer(containerid, tmpitem);
tmpitem = CreateItem(item_DoctorBag);//Maleta de Doutor
AddItemToContainer(containerid, tmpitem)
SendClientMessage(playerid, AZUL_CLARO, "Vocк pegou seus equipamentos VIP 2!");
return 0;
}
return 1;
}
PHP код:
SS/Core/Player/Commands.pwn(74) : warning 225: unreachable code
SS/Core/Player/Commands.pwn(74) : warning 217: loose indentation
SS/Core/Player/Commands.pwn(74) : error 029: invalid expression, assumed zero
SS/Core/Player/Commands.pwn(74) : warning 215: expression has no effect
SS/Core/Player/Commands.pwn(74) : error 001: expected token: ";", but found "if"
SS/Core/Player/Commands.pwn(75) : warning 217: loose indentation
SS/Core/Player/Commands.pwn(91) : error 001: expected token: ";", but found "-identifier-"
SS/Core/Player/Commands.pwn(94) : warning 225: unreachable code
SS/Core/Player/Commands.pwn(94) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.