[Ajuda] o q tem de errado ?
#1

PHP код:
CMD:equiparvip(playeridparams[])
{
    new
        
backpackitem,
        
containerid,
        
tmpitem;
    if(
Player[playerid][Vip] < 1) return SendClientMessage(playeridBranco"Vocк nгo й Vip ou nгo tem level suficiente!");
    {
        
backpackitem CreateItem(item_Backpack);//Mochila Media
        
containerid GetItemExtraData(backpackitem);
        
GivePlayerBag(playeridbackpackitem);
        
tmpitem CreateItem(item_Wrench);//Chave Inglesa
        
AddItemToContainer(containeridtmpitem);
        
tmpitem CreateItem(item_Screwdriver);//Chave de Fenda
        
AddItemToContainer(containeridtmpitem);
        
tmpitem CreateItem(item_Hammer);//Martelo
        
AddItemToContainer(containeridtmpitem);
        
tmpitem CreateItem(item_DoctorBag);//Maleta de Doutor
        
AddItemToContainer(containeridtmpitem);
        
SendClientMessage(playeridAZUL_CLARO"Vocк pegou seus equipamentos VIP!");
        return 
0;
     }
        else if(
Player[playerid][Vip] < 2) return SendClientMessage(playeridBranco"Vocк nгo й Vip ou nгo tem level suficiente!");
     {
        
backpackitem CreateItem(item_Backpack);//Mochila Media
        
containerid GetItemExtraData(backpackitem);
        
GivePlayerBag(playeridbackpackitem);
        
tmpitem CreateItem(item_Wrench);//Chave Inglesa
        
AddItemToContainer(containeridtmpitem);
        
tmpitem CreateItem(item_Screwdriver);//Chave de Fenda
        
AddItemToContainer(containeridtmpitem);
        
tmpitem CreateItem(item_Hammer);//Martelo
        
AddItemToContainer(containeridtmpitem);
        
tmpitem CreateItem(item_DoctorBag);//Maleta de Doutor
        
AddItemToContainer(containeridtmpitem);
        
tmpitem CreateItem(item_DoctorBag);//Maleta de Doutor
        
AddItemToContainer(containeridtmpitem)
        
SendClientMessage(playeridAZUL_CLARO"Vocк pegou seus equipamentos VIP 2!");
        return 
0;
    }
    return 
1;

erro:
PHP код:
SS/Core/Player/Commands.pwn(74) : warning 225unreachable code
SS
/Core/Player/Commands.pwn(74) : warning 217loose indentation
SS
/Core/Player/Commands.pwn(74) : error 029invalid expressionassumed zero
SS
/Core/Player/Commands.pwn(74) : warning 215expression has no effect
SS
/Core/Player/Commands.pwn(74) : error 001expected token";"but found "if"
SS/Core/Player/Commands.pwn(75) : warning 217loose indentation
SS
/Core/Player/Commands.pwn(91) : error 001expected token";"but found "-identifier-"
SS/Core/Player/Commands.pwn(94) : warning 225unreachable code
SS
/Core/Player/Commands.pwn(94) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Errors

Reply


Messages In This Thread
o q tem de errado ? - by zDbruno - 18.07.2015, 22:50
Re: o q tem de errado ? - by ScripterInicianteBR - 18.07.2015, 22:59
Re: o q tem de errado ? - by zDbruno - 18.07.2015, 23:05
Re: o q tem de errado ? - by ScripterInicianteBR - 18.07.2015, 23:09
Re: o q tem de errado ? - by zDbruno - 18.07.2015, 23:15
Re: o q tem de errado ? - by ScripterInicianteBR - 18.07.2015, 23:31
AW: o q tem de errado ? - by cicinho - 18.07.2015, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)