[POMOC]HITNO

Započeo JONY, Septembar 11, 2011, 18:26:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:BN
Detaljan opis problema:else if(CP[playerid] == 800 && IsACombine(carid)) { CP[playerid] = 801; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -126.6779,54.0763,2.6801,10.0); }
else if(CP[playerid] == 801 && IsACombine(carid)) { CP[playerid] = 802; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -183.3854,-75.7193,2.6792,10.0); }
   else if(CP[playerid] == 802 && IsACombine(carid)) { CP[playerid] = 803; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -195.7810,-78.0987,2.6794,10.0); }
   else if(CP[playerid] == 803 && IsACombine(carid)) { CP[playerid] = 804; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -147.4058,65.0547,2.6796,10.0); }
   else if(CP[playerid] == 804 && IsACombine(carid)) { CP[playerid] = 805; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -156.3861,73.4599,2.6904,10.0); }
   else if(CP[playerid] == 805 && IsACombine(carid)) { CP[playerid] = 806; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -213.7325,-82.2403,2.6799,10.0); }
   else if(CP[playerid] == 806 && IsACombine(carid)) { CP[playerid] = 807; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -225.9989,-80.7506,2.6832,10.0); }
   else if(CP[playerid] == 807 && IsACombine(carid)) { CP[playerid] = 808; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -182.1306,82.3061,2.6903,10.0); }
   else if(CP[playerid] == 808 && IsACombine(carid)) { CP[playerid] = 809; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -192.0852,85.7755,2.6767,10.0); }
   else if(CP[playerid] == 809 && IsACombine(carid)) { CP[playerid] = 810; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -241.1766,-69.2489,2.6823,10.0); }
   else if(CP[playerid] == 810 && IsACombine(carid)) { CP[playerid] = 811; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -257.0309,-67.9120,2.6809,10.0); }
   else if(CP[playerid] == 811 && IsACombine(carid)) { CP[playerid] = 812; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -208.8517,90.1254,2.4234,10.0); }
   else if(CP[playerid] == 812 && IsACombine(carid)) { CP[playerid] = 813; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -217.5222,97.6292,1.9916,10.0); }
else if(CP[playerid] == 813 && IsACombine(carid)) { CP[playerid] = 814; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -274.6205,-51.0260,2.6486,10.0); }
else if(CP[playerid] == 814 && IsACombine(carid)) { CP[playerid] = 815; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -67.9768,102.6790,3.1172,10.0); }
   else if(CP[playerid] == 815 && IsACombine(carid))
{
CP[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_LIGHTRED, "Upravo si zavrsio prikupljanje zita!");
TogglePlayerControllable(playerid, 0);
Combine12[playerid] = 1;
SetTimerEx("Combine1",10000, false, "i", playerid);
new randpay = 500 + random(50);
new bonus = 100 + random(50);

new payout = (randpay + bonus)/3;
GivePlayerCash(playerid, randpay + bonus);
SendClientMessage(playerid, 0x8D531AFF, "___________");
format(string, sizeof(string), "Zarada: %d$.", randpay);
SendClientMessage(playerid, 0x9A6735FF, string);
format(string, sizeof(string), "Bonus: %d$.", bonus);
SendClientMessage(playerid, 0xA97E53FF, string);
format(string, sizeof(string), "Poslodavac dobija: %d$.", payout);
SendClientMessage(playerid, 0xB28C65FF, string);
SendClientMessage(playerid, 0xB89571FF, "___________");
format(string, sizeof(string), "Ukupna zarada: %d$.", randpay + bonus);
SendClientMessage(playerid, 0xBF9F7FFF, string);

for(new i = 0; i < sizeof(SBusinesses); i++)
{
if(SBusinesses[i][sbType] == 4)
{
  SBusinesses[i][sbVault] += payout;
  SaveSBusiness(i);
}
}
}


Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):



jel ko hoce malo bolje pojasnit sta je sta ovde
Poslednja Izmena: Septembar 11, 2011, 18:27:58 POSLE PODNE od JONY

else if(CP[playerid] == 801 && IsACombine(carid)) { CP[playerid] = 802; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -183.3854,-75.7193,2.6792,10.0); }

CP[playerid] - id checkpointa za odredjenog igraca
CP[playerid] = 802; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -183.3854,-75.7193,2.6792,10.0);
brise postavljeni checkpoint na id '802' i postavlja novi umjesto njega tj. preuzima taj id '802'

Ako ti jos nesto nije jasno pitaj...

ej treba mi pomoc kako cu zamjenit da drugi poso radim a da je ista funkcija kao i ova npr ja imam pozicije snimljene al nez kako cu mjenjat

Citat: JONY poslato Septembar 11, 2011, 21:20:05 POSLE PODNE
ej treba mi pomoc kako cu zamjenit da drugi poso radim a da je ista funkcija kao i ova npr ja imam pozicije snimljene al nez kako cu mjenjat

IsACombine - ovo je samo da ti aute mogu proc kroz cp znaci dodas i tako za taj tvoj novi posao

ovi brojevi 800, 801, 802 itd znaci sam zamjenis s drugima i naravno na kraju izmjenis tebi po volji..
Vratio sam se ponovo ocekjute novi server...