Problem with - [Rent] command
#6

PHP код:
CMD:rent(playerid,params[])
{
    new
        
Vozilo GetPlayerVehicleID(playerid)
    ;
    
    for (new 
0!= 8i++)
    {
        if(
Vozilo != Rent[i]) return SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} You are not in "rentable" vehicle.");
    }
    if(
Rentano[playerid] == 0)
    {
        if(
ARentano[playerid] != 0// i changed this. You put it as 0. I set it to 1 because i want to check if is he already rented it.
        
{
            if(
GetPlayerMoney(playerid) >= 500)
            {
                
GivePlayerMoney(playerid,-500);
                
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} You rented vehicle succesfully.");
                
Rentano[playerid] = 1;
                
ARentano[playerid] = 1;
            }
            else 
SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} You don't have enough money.");
        }
        else 
SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} You have already rented vehicle.");
    }
    return 
1;

Ok so its giving me the same error. I'am in rentable vehicle and it doesn't allow. And here is your translate,but please use my language in SMDs
Reply


Messages In This Thread
Problem with - [Rent] command - by NoDi522 - 13.03.2015, 20:30
Re: Problem with - [Rent] command - by Evocator - 13.03.2015, 20:40
Re: Problem with - [Rent] command - by CalvinC - 13.03.2015, 20:44
Re: Problem with - [Rent] command - by NoDi522 - 13.03.2015, 20:50
Re: Problem with - [Rent] command - by Evocator - 13.03.2015, 20:58
Re: Problem with - [Rent] command - by NoDi522 - 13.03.2015, 21:07
Re: Problem with - [Rent] command - by Evocator - 13.03.2015, 21:19
Re: Problem with - [Rent] command - by NoDi522 - 14.03.2015, 09:27

Forum Jump:


Users browsing this thread: 2 Guest(s)