Detaljan opis problema: Gledajte ja na GTA Rp-u sam izvalio problem da nemogu /withdraw neznam zasto koordinate su postavljene ali pise da nisam u banci? moze li neko da mi pomogne?
Dio skripte:
if(strcmp(cmd, "/withdraw", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 103 || PlayerToPoint(1.5, playerid, 1346.5016,-1758.7649,13.5156) || PlayerToPoint(1.5, playerid, 1592.7152,-2335.3748,13.5400) || PlayerToPoint(1.5, playerid, 2308.4612,-1634.4176,14.8270) || PlayerToPoint(1.5, playerid, 2865.9014,-1415.4203,11.0061) || PlayerToPoint(1.5, playerid, 2404.5913,-1229.8973,23.8301) || PlayerToPoint(1.5, playerid, 1172.5912,-1328.4365,15.4034))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /withdraw ");
format(string, sizeof(string), " Vi imate $%d na vasem racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristite: /withdraw ");
format(string, sizeof(string), " Vi imate $%d na vasem racunu.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Vi nemate toliko novca !");
return 1;
}
//ConsumingMoney = 1;
SafeGivePlayerMoney(playerid,cashdeposit);
PlayerInfo=PlayerInfo-cashdeposit;
format(string, sizeof(string), " Vi ste podigli $%d sa vaseg racuna Ukupno: $%d ", cashdeposit,PlayerInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste u banci !");
return 1;
}
}
return 1;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
