Započeo Lucic | Digital Hosting
•16. Okt. 2011.• Zaključano[Pomoc] BUG /BUYMATS
783
pregleda
9
postova
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
246
Postovi:
74
Teme:
Pridružio se:Sep. 2011
16. Okt. 2011.
Koji gamemod koristite?: GTARP
Koje vam se greške javljaju u skripti?: LJudiiiii Imam Bug sa Komandom /Buymats i naprimer ode neko da uzme mats kuca /buymats -3232323 i dobije 32323232 $ Kako da resim toooo molimmm vasssss
Dio skripte na kojim se javljaju greške?:
Koje vam se greške javljaju u skripti?: LJudiiiii Imam Bug sa Komandom /Buymats i naprimer ode neko da uzme mats kuca /buymats -3232323 i dobije 32323232 $ Kako da resim toooo molimmm vasssss
Dio skripte na kojim se javljaju greške?:
if(strcmp(cmd,"/buymats",true)==0) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Morate se prvo prijaviti !");
return 1;
}
if(PlayerInfo != 9)
{
SendClientMessage(playerid, COLOR_GREY, " Niste diler oruzija. ");
return 1;
}
if(!PlayerToPoint(2.0, playerid, 2230.3579,-2286.2107,14.3751))
{
SendClientMessage(playerid, COLOR_GREY, " Niste kod Banke Materijala !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /buymats ");
return 1;
}
new mammount;
mammount = strval(tmp);
if(mammount > matssys)
{
SendClientMessage(playerid, COLOR_GREY, " Nemaju dovoljno materijala ! ");
return 1;
}
if(GetPlayerMoney(playerid) < mammount * 5 - 1)
{
SendClientMessage(playerid, COLOR_GREY, " Nemate dovoljno novca ! ");
return 1;
}
matssys -= mammount;
PlayerInfo += mammount;
SafeGivePlayerMoney(playerid, - mammount * 5);
format(string, sizeof(string), " Kupili ste %d materijala za %d$ !", mammount, mammount * 5);
SendClientMessage(playerid, COLOR_GREY, string);
SaveMatsSystem();
return 1;
}
return 1;
}Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
246
Postovi:
74
Teme:
Pridružio se:Sep. 2011
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
246
Postovi:
74
Teme:
Pridružio se:Sep. 2011
16. Okt. 2011.
if(strcmp(cmd,"/buymats",true)==0) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Morate se prvo prijaviti !");
return 1;
}
if(PlayerInfo != 9)
{
SendClientMessage(playerid, COLOR_GREY, " Niste diler oruzija. ");
return 1;
}
if(!PlayerToPoint(2.0, playerid, 2230.3579,-2286.2107,14.3751))
{
SendClientMessage(playerid, COLOR_GREY, " Niste kod Banke Materijala !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /buymats ");
return 1;
}
new mammount;
mammount = strval(tmp);
if(mammount > matssys)
{
SendClientMessage(playerid, COLOR_GREY, " Nemaju dovoljno materijala ! ");
return 1;
}
if(GetPlayerMoney(playerid) < mammount * 5 - 1)
{
SendClientMessage(playerid, COLOR_GREY, " Nemate dovoljno novca ! ");
return 1;
}
matssys -= mammount;
PlayerInfo += mammount;
SafeGivePlayerMoney(playerid, - mammount * 5);
format(string, sizeof(string), " Kupili ste %d materijala za %d$ !", mammount, mammount * 5);
SendClientMessage(playerid, COLOR_GREY, string);
SaveMatsSystem();
return 1;
}
return 1;
}Evo je komanda Pa pogledaj Kako sta treba Plizzzz
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
246
Postovi:
74
Teme:
Pridružio se:Sep. 2011
16. Okt. 2011.
A izvini Gde to da stavim Kak da odradim Mos MI ti stavim Eno Tamo imas Komanda Plizzz BICu ti zahvalan 😄 Kaj molim te odradi mi to
16. Okt. 2011.
if(strcmp(cmd,"/buymats",true)==0) // By Ellis
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Morate se prvo prijaviti !");
return 1;
}
if(PlayerInfo != 9)
{
SendClientMessage(playerid, COLOR_GREY, " Niste diler oruzija. ");
return 1;
}
if(!PlayerToPoint(2.0, playerid, 2230.3579,-2286.2107,14.3751))
{
SendClientMessage(playerid, COLOR_GREY, " Niste kod Banke Materijala !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /buymats ");
return 1;
}
new mammount;
mammount = strval(tmp);
if(mammount <= 0) return SendClientMessage(playerid, COLOR_GREY, " Suma nesme biti manja od 0 ! ");
if(mammount > matssys)
{
SendClientMessage(playerid, COLOR_GREY, " Nemaju dovoljno materijala ! ");
return 1;
}
if(GetPlayerMoney(playerid) < mammount * 5 - 1)
{
SendClientMessage(playerid, COLOR_GREY, " Nemate dovoljno novca ! ");
return 1;
}
matssys -= mammount;
PlayerInfo += mammount;
SafeGivePlayerMoney(playerid, - mammount * 5);
format(string, sizeof(string), " Kupili ste %d materijala za %d$ !", mammount, mammount * 5);
SendClientMessage(playerid, COLOR_GREY, string);
SaveMatsSystem();
return 1;
}
return 1;
}Evo dodao sam i ako ukuca ispod 0 ili 0 da vrati poruku: SendClientMessage(playerid, COLOR_GREY, " Suma nesme biti manja od 0 ! ");
Enforcer
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
246
Postovi:
74
Teme:
Pridružio se:Sep. 2011
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava