[Pomoc] problem so banka

Započeo El Toni
9. Jun 2011. Zaključano
1,303
pregleda
14
postova
antonio005
4
Made Man
9. Jun 2011.
Skripta koju koristim: SN
Detaljan opis problema: ma neradi komanda /deposit /withdraw/ balance....... pise da nisam u banci kako da sredim ?
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):  http://zaslike.com/files/s72yh3oh6vq2or0kog.png
Luis
5
Godfather
9. Jun 2011.
Postaj komande /withdraw /deposit.
Nisu ti dobre kordinate to jest podesi si IsPlayerInRangeOfPoint na tocno.
antonio005
4
Made Man
9. Jun 2011.
nemogu da nadzem kordinate........ evo komanda sta je /withdraw
if(strcmp(cmd, "/withdraw", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo != 103)
        {
            SendClientMessage(playerid, COLOR_GREY, "  {00CCFF}SuperNova:{FF0000} Nisi u Banci !");
            return 1;
        }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00CCFF}KORISTI:{FFFF00} /withdraw ");
format(string, sizeof(string), "  Imas $%d na racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00CCFF}KORISTI:{FFFF00} /withdraw ");
format(string, sizeof(string), "  Imas $%d na racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "  Nemas toliko novaca!");
return 1;
}
    ConsumingMoney = 1;
JB_GivePlayerMoney(playerid,cashdeposit);
PlayerInfo=PlayerInfo-cashdeposit;
format(string, sizeof(string), "  Uzeo si $%d sa svog racuna Ostalo: $%d ", cashdeposit,PlayerInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
return 1;
}
pavle.bakun
5
Crime Lord
9. Jun 2011.
Posto neznam bas oko GF-a probaj da uzmes pLocal odnosno ovo:
if(PlayerInfo != 103)

i zamenis ovim

if(!IsPlayerInRangeOfPoint(playerid, /* range */, /* x u banci */, /* y u banci */, /* z u banci */);
antonio005
4
Made Man
9. Jun 2011.
jel to ovako treba izgledati
if(!IsPlayerInRangeOfPoint(playerid, range, 2308.8684, -13.2484, 26.7422);
pavle.bakun
5
Crime Lord
9. Jun 2011.
Quote from June 9, 2011, 7:06 pm:
jel to ovako treba izgledati
if(!IsPlayerInRangeOfPoint(playerid, 3, 2308.8684, -13.2484, 26.7422);

Nope ovako:

if(strcmp(cmd, "/withdraw", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
       if(!IsPlayerInRangeOfPoint(playerid, 3, 2308.8684, -13.2484, 26.7422)
       {
           SendClientMessage(playerid, COLOR_GREY, "   {00CCFF}SuperNova:{FF0000} Nisi u Banci !");
           return 1;
       }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00CCFF}KORISTI:{FFFF00} /withdraw ");
format(string, sizeof(string), "  Imas $%d na racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00CCFF}KORISTI:{FFFF00} /withdraw ");
format(string, sizeof(string), "  Imas $%d na racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "   Nemas toliko novaca!");
return 1;
}
   ConsumingMoney = 1;
JB_GivePlayerMoney(playerid,cashdeposit);
PlayerInfo=PlayerInfo-cashdeposit;
format(string, sizeof(string), "  Uzeo si $%d sa svog racuna Ostalo: $%d ", cashdeposit,PlayerInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
return 1;
}
antonio005
4
Made Man
9. Jun 2011.
izbacio mi error
C:\Documents and Settings\Antonio\Desktop\sn\gamemodes\sn.pwn(20855) : error 017: undefined symbol "range"
Mr.Lowrey
5
Godfather
9. Jun 2011.
Quote from June 9, 2011, 7:19 pm:
izbacio mi error
C:\Documents and Settings\Antonio\Desktop\sn\gamemodes\sn.pwn(20855) : error 017: undefined symbol "range"
pa tu moras staviti radijus recimo 30.0 ili 15.0 koliko ti hoces
pavle.bakun
5
Crime Lord
9. Jun 2011.
Quote from June 9, 2011, 7:19 pm:
izbacio mi error
C:\Documents and Settings\Antonio\Desktop\sn\gamemodes\sn.pwn(20855) : error 017: undefined symbol "range"

Ispravio sam kod vidi sad...
Lane_Hudson
4
Enforcer
9. Jun 2011.
Otisji u banku i ismeri koordinate kod saltera.
/save

Onda otvoris svoj GTA SA User Files i procitas koordinate i ubacis ih u skriptu kao sta ti je eXtreame napisao.. 😛
i naravno pre tih koordinata stavis range of point 5 ili 6.. po volji 😛
pavle.bakun
5
Crime Lord
9. Jun 2011.
Lane_Hudson wrote on June 9, 2011, 7:37 pm:
Otisji u banku i ismeri koordinate kod saltera.
/save

Onda otvoris svoj GTA SA User Files i procitas koordinate i ubacis ih u skriptu kao sta ti je eXtreame napisao.. 😛
i naravno pre tih koordinata stavis range of point 5 ili 6.. po volji 😛

Zasto bi koristio /save  🙂 kad moze /rs koji izbacuje:
914.9587,-921.1210,42.6016,95.9534 ;
antonio005
4
Made Man
9. Jun 2011.
sredio sam to kako sto mi e reko extreme /deposit /balance /withdraw ali izbacio mi 3 errora za neka { obrisao sam i opet error kako da ja popravim
C:\Documents and Settings\Antonio\Desktop\sn RP\gamemodes\sn.pwn(20856) : error 001: expected token: ")", but found "{"
C:\Documents and Settings\Antonio\Desktop\sn RP\gamemodes\sn.pwn(20895) : error 001: expected token: ")", but found "{"
C:\Documents and Settings\Antonio\Desktop\sn RP\gamemodes\sn.pwn(20940) : error 001: expected token: ")", but found "{"


evo i sliku...  http://zaslike.com/files/t3fkal746oi0mop1uoxd.jpg
Mr.Lowrey
5
Godfather
9. Jun 2011.
expected toke, znaci da ti ta ) fali negdje dobro pogledaj na toj liniji
antonio005
4
Made Man
9. Jun 2011.
ok,hvala puno svima sredio sam moze lock tema 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha