Car tow help
#1

hey guys.
i am trying to make car tow with dialog but i really cant make it i am getting problems that i've never seen before.
here is my script please if u can do something tell me

PHP код:
else if(!strcmp(tmp"tow"true3)) 
    { 
     if(!
strlen(tmp2) || !IsNumeric(tmp2) || strlen(tmp2) > 5) return SCP(playerid"tow [vehicleID (/myvehicles)]"); 
     new 
themodel strval(tmp2); 
        if(
themodel || themodel sizeof(Vehicles)) return SendClientError(playerid"Invalid vehicle ID!"); 
        if(
strcmp(PlayerName(playerid),Vehicles[themodel][carowner],false)) 
            return 
SendClientError(playerid"You do not own this vehicle!"); 
        if(
IsVehicleOccupied(themodel)) 
            return 
SendClientError(playerid"The vehicle is currently occupied!"); 
        new 
iPrice
        if(
PlayerInfo[playerid][playerlvl] < 15iPrice 0
        else 
iPrice 5000
        if(
HandMoney(playerid) < iPrice) return SendClientError(playerid"You don't have enough money!"); 
        
ReloadVehicle(themodel); 
        
SendClientMessage(playeridCOLOR_LIGHTGREY,"Info: Your vehicle has been towed!"); 
        if(
iPriceGameTextForPlayer(playerid"~r~$-5000"3000,1); 
        
GivePlayerMoneyEx(playerid, -iPrice); 
        
dini_IntSet("Gov_Land_Company.txt""bizcash"dini_Int("Gov_Land_Company.txt""bizcash") + 150); 
        
format(iStrsizeof(iStr), "6[VEHICLE] %s has towed their %s."PlayerName(playerid), GetVehicleName(themodel)); 
        
iEcho(iStr); 
    } 
Reply


Messages In This Thread
Car tow help - by TheLegend1 - 20.06.2015, 22:36
Re: Car tow help - by Dusan01 - 20.06.2015, 22:48
Re: Car tow help - by TheLegend1 - 21.06.2015, 12:44
Re: Car tow help - by Dusan01 - 21.06.2015, 12:46
Re: Car tow help - by TheLegend1 - 21.06.2015, 14:19
Re: Car tow help - by TheLegend1 - 21.06.2015, 17:09

Forum Jump:


Users browsing this thread: 3 Guest(s)