[Pomoc] Posao Kamiondzija

Započeo Zeljko26
19. Maj 2012.
611
pregleda
14
postova
Zeljko26
3
Wheel Man
19. Maj 2012.
Skripta koju koristim: nesto ja i drug poksuavamo 😄
Opis problema: e ovkao stalno mi stoji za produkte 0/0 kad kucam /buyprods 50 npr opet 0/0 pokusao sam svasta al nisam usepo
Deo skripte: ako treba nesto stavicu
Slika: http: http://ultraphoto.org/viewer.php?file=9ur99utnn4h7e7dzk3aq.png

Unapred Hvala  😄
Armin123
4
Made Man
19. Maj 2012.
Kucaj /buyprods i onda broj produkata i onda ćes ih imati....!
Zeljko26
3
Wheel Man
20. Maj 2012.
ne vredi nece.. dal iko zna?
danijel123
5
Kingpin
20. Maj 2012.
daj vamo komandu /buyprods
Zeljko26
3
Wheel Man
20. Maj 2012.
Evo
	if(strcmp(cmd, "/buyprods", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
new compcost = 20;
if(PlayerToPoint(70.0, playerid, 2468.4919,-2092.9902,13.5469))
{
if(IsATruck(tmpcar))
{
if(PlayerHaul < PlayerHaul)
{
    new amount;
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koriscenje: /buyprods ");
return 1;
}
amount = strval(tmp);
if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "  Ne mozete kupiti manje od 1 ni vise od 500 produkata!"); return 1; }
new check= PlayerHaul + amount;
if(check > PlayerHaul)
{
    format(string, sizeof(string), "  Presli ste preko limita za kamion od %d, sada vozite %d.",PlayerHaul,PlayerHaul);
    SendClientMessage(playerid, COLOR_GREY, string);
    return 1;
}
new cost = amount*compcost;
if(GetPlayerMoney(playerid) >= cost)
{
PlayerHaul += amount;
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Kupili ste %d Produkte za $%d.", amount,cost);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
SafeGivePlayerMoney(playerid,-cost);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
else
{
format(string, sizeof(string), "Ne mozete da priustite %d Produkata za $%d!", amount,cost);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
else
{
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
else
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Ne mozete vrsiti dostavu produkata sa ovim vozilom.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not in trucker place.");
return 1;
}
}
return 1;
}
Zeljko26
3
Wheel Man
20. Maj 2012.
Niko ne zna 😕 ?
Boki_Bokic
2
Wheel Man
20. Maj 2012.
Saljem ti na PM od mog gm sto je kod mene i meni sve radi...
Zeljko26
3
Wheel Man
20. Maj 2012.
ne vredi ne razumem zasto.. kad kucam npr /buyprods 50 izadje Produkti:0/0 kucam /buyprods 100 isto kolko god da upisem isto
http://www.zaslike.com/viewer.php?file=mtwpnbo844b8ue507w3j.png
Zeljko26
3
Wheel Man
20. Maj 2012.
BUMP
Armin123
4
Made Man
20. Maj 2012.
Dali je to tvoj mod ili edit?
Zeljko26
3
Wheel Man
20. Maj 2012.
edit...radilo je to sve samo mi smo preuredili mod i tek sad sam video taj bug i ne znam kako da resim
Armin123
4
Made Man
20. Maj 2012.
Pa kojeg onda se lakše orijentisat?
Zeljko26
3
Wheel Man
20. Maj 2012.
Brutal Public
[BU]Lukas
4
Enforcer
21. Maj 2012.
if(strcmp(cmd, "/buyprods", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
new compcost = 20;
if(PlayerToPoint(70.0, playerid, 2468.4919,-2092.9902,13.5469))
{
if(IsATruck(tmpcar))
{
if(PlayerHaul < PlayerHaul)
{
    new amount;
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koriscenje: /buyprods ");
return 1;
}
amount = strval(tmp);
if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "  Ne mozete kupiti manje od 1 ni vise od 500 produkata!"); return 1; }
new check= PlayerHaul + amount;
if(check > PlayerHaul)
{
    format(string, sizeof(string), "  Presli ste preko limita za kamion od %d, sada vozite %d.",PlayerHaul,PlayerHaul);
    SendClientMessage(playerid, COLOR_GREY, string);
    return 1;
}
new cost = amount*compcost;
if(GetPlayerMoney(playerid) >= cost)
{
PlayerHaul += amount;
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "Kupili ste %d Produkte za $%d.", amount,cost);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
SafeGivePlayerMoney(playerid,-cost);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
else
{
format(string, sizeof(string), "Ne mozete da priustite %d Produkata za $%d!", amount,cost);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
else
{
format(string, sizeof(string), "Produkti: %d/%d.", PlayerHaul,PlayerHaul);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
}
else
{
SendClientMessage(playerid, TEAM_GROVE_COLOR, "Ne mozete vrsiti dostavu produkata sa ovim vozilom.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not in trucker place.");
return 1;
}
}
return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha