Problem with - [Rent] command
#8

PHP код:
CMD:rent(playerid,params[])
{
    new 
Vozilo GetPlayerVehicleID(playerid);
    {
        if(
Vozilo != Rent[0] || Vozilo != Rent[1] || Vozilo != Rent[2] || Vozilo != Rent[3] || Vozilo != Rent[4] || Vozilo != Rent[5] || Vozilo != Rent[6] || Vozilo != Rent[7]) return SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} Ne nalazite se u vozilu za rentanje");
    }
    if(
Rentano[playerid] == 0)
    {
        if(
ARentano[playerid] == 0)
        {
            if(
GetPlayerMoney(playerid) >= 500)
            {
                
GivePlayerMoney(playerid,-500);
                
SendClientMessage(playerid,-1,"{00C0FF}WG:{FFFFFF} Uspjesno ste rentali vozilo");
                
Rentano[playerid] = 1;
                
ARentano[playerid] = 1;
            }
            else 
SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} Nemate dovoljno novca na racunu");
        }
        else 
SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} Vec ste rentali vozilo");
    }
    return 
1;

I really don't know what is the problem. So i tried the function like this and again says "You are not in rentable vehicle". More help?
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: 3 Guest(s)