Detaljan opis problema: Imam 2 errora kod jedne komande a kod drugog nemogu da resim to.
Dio skripte: Evo ovde ima sve http://pastebin.com/ybKNhKTL
Neke slike/video za lakse dobivanje pomoci(neobavezno):


if(PlayerToPoint(3.0,playerid,1097.7882,-1606.0138,13.6151) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,2221.7788,-1153.8906,25.7614) || PlayerToPoint(3.0,playerid,1254.3721,-1639.1016,13.5469) || PlayerToPoint(3.0,playerid,2017.6630,-1332.5795,23.9844) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,296,1500.3928,-1741.7374,13.5469,181.5965,0)) if(strcmp(cmd, "/bbank", true) == 0 || strcmp(cmd, "/bdeposit", true) == 0)
{
if(PlayerToPoint(3.0,playerid,1097.7882,-1606.0138,13.6151) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,2221.7788,-1153.8906,25.7614) || PlayerToPoint(3.0,playerid,1254.3721,-1639.1016,13.5469) || PlayerToPoint(3.0,playerid,2017.6630,-1332.5795,23.9844) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,296,1500.3928,-1741.7374,13.5469,181.5965,0))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank ");
format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank ");
format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate toliko");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo;
PlayerInfo=cashdeposit+PlayerInfo;
SendClientMessage(playerid, COLOR_WHITE, "|___ BANKOVNO IZVJESCE ___|");
format(string, sizeof(string), " Staro stanje: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Depozit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
} if(strcmp(cmd, "/banka", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!PlayerToPoint(4,playerid,2310.7529,-13.9257,26.7421))
{
SendClientMessage(playerid, COLOR_GREY, "Morate biti u banci.");
return 1;
}
ShowPlayerDialog(playerid,2000,DIALOG_STYLE_LIST ,"|° Banka °|","Deposit\nWithdraw\nKredit\nBalance","Odaberi","Odustani");
}
return 1;
}
if(strcmp(cmd, "/bhelp", true) == 0)
{
if(PlayerToPoint(3.0,playerid,1097.7882,-1606.0138,13.6151) || PlayerToPoint(3.0,playerid,2221.7788,-1153.8906,25.7614) || PlayerToPoint(3.0,playerid,1254.3721,-1639.1016,13.5469) || PlayerToPoint(3.0,playerid,2017.6630,-1332.5795,23.9844) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,1500.0084,-1741.6024,13.5469))
{
SendClientMessage(playerid, COLOR_GREEN, "***** Bankomat Pomoc ****");
SendClientMessage(playerid, COLOR_GRAD2, " /bwithdraw");
SendClientMessage(playerid, COLOR_GRAD2, " /bbank");
SendClientMessage(playerid, COLOR_GRAD2, " /bbalance");
SendClientMessage(playerid, COLOR_GRAD2, " /btransfer");
SendClientMessage(playerid, COLOR_GRAD2, " /bdeposit");
SendClientMessage(playerid, COLOR_GREEN, "*****************************");
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " *Nisi na bankomatu.");
}
return 1;
}
if(strcmp(cmd, "/bbank", true) == 0 || strcmp(cmd, "/bdeposit", true) == 0)
{
if(PlayerToPoint(3.0,playerid,1097.7882,-1606.0138,13.6151) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,2221.7788,-1153.8906,25.7614) || PlayerToPoint(3.0,playerid,1254.3721,-1639.1016,13.5469) || PlayerToPoint(3.0,playerid,2017.6630,-1332.5795,23.9844) || PlayerToPoint(3.0,playerid,1211.4314,-914.8712,43.0201) || PlayerToPoint(3.0,playerid,296,1500.3928,-1741.7374,13.5469,181.5965,0))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank ");
format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /bank ");
format(string, sizeof(string), " Imate $%d na vasem racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > GetPlayerMoney(playerid) || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Nemate toliko");
return 1;
}
GivePlayerMoney(playerid,-cashdeposit);
new curfunds = PlayerInfo;
PlayerInfo=cashdeposit+PlayerInfo;
SendClientMessage(playerid, COLOR_WHITE, "|___ BANKOVNO IZVJESCE ___|");
format(string, sizeof(string), " Staro stanje: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Depozit: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava