[POMOC] Rent vozila

Započeo ceLL_, Oktobar 27, 2010, 00:29:58 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.


Radi mi... :) ...:::Hvala ti:::...

Ali imam jedan problem.. Ovako:

1. Vozilo mogu voziti/pokrenuti pre nego sto rentam
2.Kada ukucam /unrentcar ne spawna vozilo tamo gde treba nego samo ostane tu gde si ukucao /unrentcar
3.Ne skine pare kad rentas
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

ZicMortal

Citat: Marjan_DeFox poslato Oktobar 27, 2010, 21:35:27 POSLE PODNE
1. Vozilo mogu voziti/pokrenuti pre nego sto rentam
2.Kada ukucam /unrentcar ne spawna vozilo tamo gde treba nego samo ostane tu gde si ukucao /unrentcar
3.Ne skine pare kad rentas


1. OnPlayerStateChange - PLAYER_STATE_DRIVER - if(GetPlayerVehicleID(playerid) == ID_VOZILA_NA_RENT) - uglate zagrade - stavis gametext i toggleplayercontrolable (da ga freeza).
2. Komanda /unrentcar - SetVehicleToRespawn(HireCar[playerid]);
3. Mozda zato sta ti je ulazak u car rent bizz postavljen na 0? (cijena)


Mozes ovo pod 1. malo pojasniti.... Ili ti uradi a ja cu samo izmeniti (Lupi neki primer)

Znam da trazim na tacnu...Ali jbg
:/
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

ZicMortal

if(newcar >= pocetni_id_vozila && newcar => zadnji_id_vozila)
		{
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "~w~Upisi ~r~/rentcar~w~ ukoliko zelis rentati ovo ~b~vozilo~w~.", 5000, 3);
		}

C:\Documents and Settings\Administrator\Desktop\Godfather Edit 0.3b\gamemodes\sbrp.pwn(7172) : error 017: undefined symbol "newcar"
C:\Documents and Settings\Administrator\Desktop\Godfather Edit 0.3b\gamemodes\pfrp.pwn(7172) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Godfather Edit 0.3b\gamemodes\pfrp.pwn(7172) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\Godfather Edit 0.3b\gamemodes\pfrp.pwn(7172) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Desktop\Godfather Edit 0.3b\gamemodes\pfrp.pwn(7172) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


if(newcar >= 1 && newcar => 14)


???  -.-'
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

ZicMortal

Evo ispravak ...

if(GetPlayerVehicleID(playerid) >= pocetni_id_vozila && GetPlayerVehicleID(playerid) >= zadnji_id_vozila)
		{
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "~w~Upisi ~r~/rentcar~w~ ukoliko zelis rentati ovo ~b~vozilo~w~.", 5000, 3);
		}

Jao koji sam ja baksuz...(nista me nece :D)

Nema errora sve je cisto! Ali kad udjem da isprobam...

1.U BILO KOJI auto da udjem on mi izbaci ovaj TEXT
GameTextForPlayer(playerid, "~w~Upisi ~r~/rentcar~w~ ukoliko zelis iznajmiti ovo ~b~vozilo~w~.", 5000, 3);
  I MOGU rentati bilo koje vozilo ( A lepo sam stavio od 1 do 14)
2.Odem do tih auto za /rent | Udjem u auto lepo mi pise Text ALI opet mogu voziti/pokrenuti auto pre nego sto rentam

A evo lepo sam stavio autove od 1 do 14!

if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) >= 14)
		{
			TogglePlayerControllable(playerid, 0);
			GameTextForPlayer(playerid, "~w~Upisi ~r~/rentcar~w~ ukoliko zelis iznajmiti ovo ~b~vozilo~w~.", 5000, 3);
		}


Znaci meni treba da NE MOGU voziti vozilo ako ga ne rentam!
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

ZicMortal

A fak -.-, krivo sam ti poslo... ovu liniju - if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) >= 14)

zamjeni sa ovom...
if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) =< 14)

Znaci ja NE MOGU da verujem..... -.-
Samo sam zamenio i BUM errori...

C:\Documents and Settings\Administrator\Desktop\Godfather 0.3b\gamemodes\pfrp.pwn(7172) : warning 211: possibly unintended assignment
C:\Documents and Settings\Administrator\Desktop\Godfather 0.3b\gamemodes\pfrp.pwn(7172) : error 022: must be lvalue (non-constant)
C:\Documents and Settings\Administrator\Desktop\Godfather 0.3b\gamemodes\pfrp.pwn(7172) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Godfather 0.3b\gamemodes\pfrp.pwn(7172) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\Godfather 0.3b\gamemodes\pfrp.pwn(7172) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Desktop\Godfather 0.3b\gamemodes\pfrp.pwn(7172) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


RED je taj sto sam zamenio... if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) =< 14)
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

if(GetPlayerVehicleID(playerid) >= 1 && GetPlayerVehicleID(playerid) =< 14);
Stavi tako možda će ti raditi,nisam siguran ;)

@Red
nece :*

@tema

Stavi umjesto onog linea ovaj

new a = GetPlayerVehicleID(playerid;
if(a >= 1 && a <= 14)

U ovom slucaju a predstavlja vozilo u kojem jesi i provjerava jeli id 1 - 14. To stavi umjesto onog linea.

Citat: [Saw]BloodMaster poslato Oktobar 27, 2010, 23:10:44 POSLE PODNE
@Red
nece :*

@tema

Stavi umjesto onog linea ovaj

new a = GetPlayerVehicleID(playerid;
if(a >= 1 && a <= 14)

U ovom slucaju a predstavlja vozilo u kojem jesi i provjerava jeli id 1 - 14. To stavi umjesto onog linea.

Brate ne razumem te.....


EDIT: Shvatio sam... ;) I uradio sam

I stavio lepo od 1 do 14 !! Od 14 vozila samo 4 mi radi! Tj. 4nmg da vozim dok ne rentam a ova ostala mogu...
Poslednja Izmena: Oktobar 28, 2010, 00:07:45 PRE PODNE od Marjan_DeFox
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"

Odi u sva ta auta i napisi /oldcar te brojeve prepisi vamo....

U svaki auto da udjem i da upisem /oldcar....?

EDIT:Evo uradio sam to


Motor Cross - br.   1
Motor Cross2 -br.   2
Motor Cross3 -br.   3
Motor Cross4 -br.   4

Skuter - br. 5
Skuter2- br. 6
Skuter3- br. 7
Skuter4- br. 8

Beli auto- br. 9
Bel auto2- br.10
Beli auto3-br.11

Crni auto- br. 12
Crni auto2-br. 13
Crni auto3-br. 14


Od svih tih meni rade samo SKUTERI....! Ova ostala mogu da vozim/pokrenem pre nego sto rentam! SAMO Skuter radi sve lepo
Poslednja Izmena: Oktobar 28, 2010, 12:14:25 POSLE PODNE od Marjan_DeFox
â"Œâˆ©â"(â—•_â—•)â"Œâˆ©â"

Respect to: (à¥"_à¥") - ČιѕÑ,σ яÑ"кяÑ"αÑ,ινησ - (à¥"_à¥") , [Saw]BloodMaster

â"Œâˆ©â"(â—£_â—¢)â"Œâˆ©â"