H{3}nr{1} 19 Odesláno: 2. Prosinec, 2013 Share Odesláno: 2. Prosinec, 2013 Zdravím, potřeboval by jsem help že např. první minutu se hráči přídá 120 $, druhou 200 atp. Základ mám, takže sem nepište blbej základ, ale byl by jsem rád za code, zkusil jsem jednu věc, ale to dávalo random, a to moc nechci... Díky za pomoc. Link to comment Share on other sites More sharing options...
0 kazlik 29 Odesláno: 2. Prosinec, 2013 Share Odesláno: 2. Prosinec, 2013 základem myslíš co? Timer? Zvyšovač odměny? Něco jinýho? Bez kódu co máš ti těžko pomůžem Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 2. Prosinec, 2013 Author Share Odesláno: 2. Prosinec, 2013 Mám timer a a public, ale potřebuju aby to hráčí dávalo každou minutu další věc ale nesmí bejt random.. Link to comment Share on other sites More sharing options...
0 kazlik 29 Odesláno: 2. Prosinec, 2013 Share Odesláno: 2. Prosinec, 2013 nahoru new level[MAX_PLAYERS];do OnPlayerConnect level[playerid] = 0;a do timeru (jeho publicu) for(new a; a < MAX_PLAYERS; a++{ if(IsPlayerConnected(a){ switch(level[a]){ case 0: // poprvé break; case 1: // podruhé break; //case 3, 4 5... default: // max. úroveň break; } level[a]++; } } Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 2. Prosinec, 2013 Author Share Odesláno: 2. Prosinec, 2013 Thx Ale nejde compilovat Napíše mi že program neodpovídá Link to comment Share on other sites More sharing options...
0 Hrb™ 48 Odesláno: 2. Prosinec, 2013 Share Odesláno: 2. Prosinec, 2013 tady -> for(new a; a < MAX_PLAYERS; a++{ chybí ")" -> for(new a; a < MAX_PLAYERS; a++) { tady -> if(IsPlayerConnected(a){ chybí zase ")" -> if(IsPlayerConnected(a)) { Link to comment Share on other sites More sharing options...
0 H{3}nr{1} 19 Odesláno: 3. Prosinec, 2013 Author Share Odesláno: 3. Prosinec, 2013 I tak mi to píše že pawno neodpovídá Link to comment Share on other sites More sharing options...
0 SpyLine 0 Odesláno: 3. Prosinec, 2013 Share Odesláno: 3. Prosinec, 2013 já to zkouším taky a nejde to ... Mě by se to hodilo na dobu Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 3. Prosinec, 2013 Share Odesláno: 3. Prosinec, 2013 I tak mi to píše že pawno neodpovídá a nebo new Penize; forward CasNaMoney(); public CasNaMoney() { Penize += 80; for(new i = 0;i<MAX_PLAYERS;i++) { if(Penize > 800) { GivePlayerMoney(i,Penize); }else{ Penize = 0; } } } public OnGameModeInit() { SetTimer("CasNaMoney",60000,1); return 1; } Link to comment Share on other sites More sharing options...
0 ATomas 286 Odesláno: 3. Prosinec, 2013 Share Odesláno: 3. Prosinec, 2013 new AddMoneyCount[MAX_PLAYERS]; public AddPlayerMoney(playerid) { switch(AddMoneyCount[playerid]) { case 0: GivePlayerMoney(playerid,120); case 1: GivePlayerMoney(playerid,200); } AddMoneyCount[playerid]++; return 1; } SetTimer("AddPlayerMoney",60000,1,"i",playerid); A kdyby jsi chtel pro vsechny hrace: public MinuteTimer() { for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) AddPlayerMoney(i); } } SetTimer("MinuteTimer",60000,1); Link to comment Share on other sites More sharing options...
Dotaz
H{3}nr{1} 19
Zdravím,
potřeboval by jsem help že např. první minutu se hráči přídá 120 $, druhou 200 atp.
Základ mám, takže sem nepište blbej základ, ale byl by jsem rád za code, zkusil jsem jednu věc, ale to dávalo random, a to moc nechci...
Díky za pomoc.
Link to comment
Share on other sites
9 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