Skripta: Gta Rp
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, "USAGE: /withdraw ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /withdraw ");
format(string, sizeof(string), " You Have $%d in your account.", PlayerInfo);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have that much !");
return 1;
}
//ConsumingMoney = 1;
SafeGivePlayerMoney(playerid,cashdeposit);
PlayerInfo=PlayerInfo-cashdeposit;
format(string, sizeof(string), " You Have Withdrawn $%d from your account Total: $%d ", cashdeposit,PlayerInfo);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the Bank !");
return 1;
}
}
return 1;
}
Opis problema:Gledajte nemogu /withdraw u banci pise nisi u banci i na bilo kom mestu pise da nisam u banci
Dajte neke pomoci ☹️
[Pomoc] Banka
552
pregleda
6
postova
1. Dec. 2011.
ubaci novu komandu..
if(strcmp(cmd, "/branka", true) == 0) // XD
{
SetPlayerPos(playerid, 1346.5016,-1758.7649,13.5156+0.4);
// ako se mijenja interior onda i to postavi sa SetPlayerInterior(playerid, int_id);
return 1;
}
if(strcmp(cmd, "/branka", true) == 0) // XD
{
SetPlayerPos(playerid, 1346.5016,-1758.7649,13.5156+0.4);
// ako se mijenja interior onda i to postavi sa SetPlayerInterior(playerid, int_id);
return 1;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava