hejcall_14 0 Odesláno: 4. Září, 2010 Share Odesláno: 4. Září, 2010 čau neotravoval bych vás kdyby to nebylo nutné na té taxe nefunguje to že když si nastavím taxu a někdo si ke mě sedne tak mu to nic nesežere tu je kód: Nahoře v modu mám: forward ZaplatTaxu(taxikar,zakaznik); new taxa[MAX_PLAYERS]; Dole: dcmd_taxa(playerid,params[]) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,RED,"[ ! ] Musíš být v autě !"); if(Job[playerid] != 5) return SendClientMessage(playerid,RED,"[ ! ] Musíš být taxikář !"); ShowPlayerDialog(playerid,23,DIALOG_STYLE_INPUT,"Taxa","Napiš cenu za 1 minutu","Uložit","Konec"); #pragma unused params return 1; } OndialogResponse: else if(dialogid == 23) { if(response == 1) { if(!inputtext[0]) return SendClientMessage(playerid,RED,"[ ! ] Musíš zadat číslo"); else { new string[128]; taxa[playerid] = strval(inputtext); format(string,128,"[ ! ] Nastavil jste si taxu na %d",taxa[playerid]); SendClientMessage(playerid,0xFFF000AA,string); } } } onplayerstate: public OnPlayerStateChange(playerid,newstate,oldstate) { if(newstate != PLAYER_STATE_DRIVER) { for(new i;i { if(IsPlayerConnected(i)) { if(playerid != i) { if(Job[i] == 5) ZaplatTaxu(i,playerid); } } } } return 1; } public zaplattaxu: public ZaplatTaxu(taxikar,zakaznik) { if(IsPlayerInAnyVehicle(taxikar)) { new vehicleid = GetPlayerVehicleID(taxikar); if(IsPlayerInVehicle(vehicleid,zakaznik)) { if(GetPlayerMoney(zakaznik) < taxa[zakaznik]) { RemovePlayerFromVehicle(zakaznik); }else{ GivePlayerMoney(zakaznik,-taxa[taxikar]); GivePlayerMoney(taxikar,taxa[taxikar]); SetTimerEx("ZaplatTaxu",10000,0,"i",taxikar,zakaznik); } } } return 1; } Jde to bez errorů a warningů Prosím pomozte mi !!!!!! -- sob 04. zář 2010 16:22:33 -- Lidi prosím to fakt nikdo nevíte? Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 4. Září, 2010 Share Odesláno: 4. Září, 2010 if(newstate != PLAYER_STATE_DRIVER) { for(new i;i { if(IsPlayerConnected(i)) { if(Job[i] == 5) { if(playerid != i) { if(IsPlayerInVehicle(i,vehicleid)) ZaplatTaxu(i,playerid); } } } } } Link to comment Share on other sites More sharing options...
0 hejcall_14 0 Odesláno: 4. Září, 2010 Author Share Odesláno: 4. Září, 2010 Hele ATomasi díky moc moje ICQ víš až budeš ty někdy z něčím potřebovat pomoz neváhej a napiš protože jsem tvým dlužníkem Link to comment Share on other sites More sharing options...
Dotaz
hejcall_14 0
čau neotravoval bych vás kdyby to nebylo nutné na té taxe nefunguje to že když si nastavím taxu a někdo si ke mě sedne tak mu to nic nesežere
tu je kód:
Nahoře v modu mám:
Dole:
OndialogResponse:
onplayerstate:
public zaplattaxu:
Jde to bez errorů a warningů
Prosím pomozte mi !!!!!!
-- sob 04. zář 2010 16:22:33 --
Lidi prosím to fakt nikdo nevíte?
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now