[Pomoc] Dostavljac

Započeo _HarDy_
8. Mar. 2013. Zaključano
365
pregleda
6
postova
_HarDy_
5
Underboss
8. Mar. 2013.
Skripta : CL edit

Problem : e vako imam ovaj posao i sada pogledajte problem
Kada kucam bilo gdje /kupiprodukte pise da nisam na mjestu
A kada odem na to mjesto pise Server Unknow Command
Mozete pomoc?

if(strcmp(cmd, "/kupiprodukte", true) == 0)
{
    if(IsPlayerConnected(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
new compcost = 20;
if(PlayerToPoint(5.0, playerid, 959.3959,-1273.8577,14.9065))
{
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);
GivePlayerCash(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;
}

Slika :


Evo poslje kada odem na mjesto

Ljubo
4
Enforcer
8. Mar. 2013.
Daj komandu /kupiprodukte
sime30
4
Enforcer
8. Mar. 2013.
Ne radi ti to uopce, ne znam zasto.. Ja sam pokusao popraviti na bezbroj nacina.. Preveo na ZCMD, uzeo kod iz ravensa koji valja al opet se nista ne događa... Jednostavno obrisi taj posao
_HarDy_
5
Underboss
8. Mar. 2013.
eto komanda gore...
Pa de kako cu onda imati u firmama produkte :S
sime30
4
Enforcer
8. Mar. 2013.
Hah, pa lijepo.. Napravis da drugacije kupuju produkte 😉
_HarDy_
5
Underboss
8. Mar. 2013.
Kako cu :S ? Zelim nesto u obliku posla ... ili moze organizacija..

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha