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
[Pomoc] problem so banka
1,303
pregleda
14
postova
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
9. Jun 2011.
Postaj komande /withdraw /deposit.
Nisu ti dobre kordinate to jest podesi si IsPlayerInRangeOfPoint na tocno.
Nisu ti dobre kordinate to jest podesi si IsPlayerInRangeOfPoint na tocno.
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;
}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 */);
if(PlayerInfo != 103)
i zamenis ovim
if(!IsPlayerInRangeOfPoint(playerid, /* range */, /* x u banci */, /* y u banci */, /* z u banci */);
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;
}
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"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 😛
/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 😛
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 😛
/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 ;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
evo i sliku... http://zaslike.com/files/t3fkal746oi0mop1uoxd.jpg
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
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava