bonus vehicle problem
#2

PHP код:
CMD:sell(playerid,params)
{
    if(
IsPlayerInDynamicCP(playerid,CraneCp))
    {
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) != BonusVehicleID) return SendClientMessage(playerid,RED,"Error: You Are Not In The Bonus Vehicle!");
        new 
str[128];
        
format(str,sizeof(str),"You Have Sold The Bonus Vehicle Today At The Crane For $%d",BonusVehiclePrize);
        
SendClientMessage(playerid,TEAL,str);
        
format(str,sizeof(str),"Bonus:%s(%d) Has Sold Today's Bonus Vehicle(%s) At The Crane For $%d!",Playername(playerid),playerid,aVehicleNames[GetVehicleModel(BonusVehicleID)-400],BonusVehiclePrize);
        
SendClientMessageToAll(TEAL,str);
        
PlayerInfo[playerid][Money]+=BonusVehiclePrize;
        
DestroyVehicle(BonusVehicleID);
        
BonusVehiclePrize=0;
        
BonusVehicleID=-1;
    }
    else
    {
        
SendClientMessage(playerid,RED,"You Are Not At The Crane!");
    }
    return 
1;

bracket it the wrong place here shoulbe like this
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != BonusVehicleID)
Reply


Messages In This Thread
bonus vehicle problem - by The_Gangstas - 05.11.2010, 01:04
Re: bonus vehicle problem - by (SF)Noobanatior - 05.11.2010, 01:09
Re: bonus vehicle problem - by The_Gangstas - 10.11.2010, 20:36
Re: bonus vehicle problem - by rs.pect - 10.11.2010, 20:43
Re: bonus vehicle problem - by The_Gangstas - 13.11.2010, 02:47
Re: bonus vehicle problem - by The_Gangstas - 13.11.2010, 18:57
Re: bonus vehicle problem - by MadeMan - 13.11.2010, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)