Problem with - [Rent] command
#5

If you could translate those, id better help you more. Anyways try this:
Код:
CMD:rent(playerid,params[])
{
    new
		Vozilo = GetPlayerVehicleID(playerid)
	;
    
    for (new i = 0; i != 8; i++)
    {
    	if(Vozilo != Rent[i]) 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;
}
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: 1 Guest(s)