#1

Hi i use larp gm.

And i have problem,when i go to bank with much money then monitor is black,when with litle price all ir good maybe know why?
Reply
#2

Maybe its bugged? Post the bank's script in here to see if me/someone can help you.
Reply
#3

I can see English isn't your primary language can you please post a more descriptive list of issues.

Use ****** Translate to assist in your Language > English

http://translate.******.com
Reply
#4

When you enter a bank with a large amount of money in the whole screen goes black, but when you walk into a small amount of money everything is ok!


Quote:

if(strcmp(cmd, "/withdraw", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLocal] == 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, "Lietojums: /withdraw [daudzums]");
format(string, sizeof(string), " Tev ir $%d tavā kontā.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Piemērs: /withdraw [amount]");
format(string, sizeof(string), " Tev ir $%d tavā kontā.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Tev nav tik daudz !");
return 1;
}
//ConsumingMoney[playerid] = 1;
PlayerInfo[playerid][pCash] += cashdeposit;
PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;
format(string, sizeof(string), " Tu izņēmi $%d no sava konta, Atlikumā: $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Tu neatrodies bankā !");
return 1;
}
}
return 1;
}

maybe this too:

Quote:

if(strcmp(cmd, "/safewithdraw", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 361.4955, 174.7696, 1025.7891))
{
if(PlayerInfo[playerid][pLeader] == 7)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Lietojums: /safewithdraw [daudzums]");
format(string, sizeof(string), " Seifā ir $%d.", SInfo[0][SafeMoney]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new safewithdraw = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Piemērs: /safewithdraw [amount]");
format(string, sizeof(string), " Seifā ir $%d.", SInfo[0][SafeMoney]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (safewithdraw > SInfo[0][SafeMoney] || safewithdraw < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Tev nav tik daudz !");
return 1;
}
PlayerInfo[playerid][pCash] += safewithdraw;
SInfo[0][SafeMoney]=SInfo[0][SafeMoney]-safewithdraw;
format(string, sizeof(string), " Tu izņēmi $%d no pilsētas seifa, Atlicis: $%d ", safewithdraw,SInfo[0][SafeMoney]);
SendClientMessage(playerid, COLOR_YELLOW, string);
SafeSave();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Tu neesi mērs!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Tu neatrodies pie seifa!");
}
}
return 1;
}
if(strcmp(cmd, "/safedeposit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 361.4955, 174.7696, 1025.7891))
{
if(PlayerInfo[playerid][pLeader] == 7)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Lietojums: /safedeposit [daudzums]");
format(string, sizeof(string), " Pilsētas seifā ir $%d.", SInfo[0][SafeMoney]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new safedeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Lietojums: /safedeposit [daudzums]");
format(string, sizeof(string), " Pilsētas seifā ir $%d.", SInfo[playerid][SafeMoney]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (safedeposit > PlayerInfo[playerid][pCash] || safedeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Tev nav tik daudz");
return 1;
}
PlayerInfo[playerid][pCash] -= safedeposit;
SInfo[0][SafeMoney]=safedeposit+SInfo[0][SafeMoney];
SendClientMessage(playerid, COLOR_YELLOW, "|_____________ PILSĒTAS SEIFS ____________|");
format(string, sizeof(string), " Nogūldijums: $%d",safedeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
format(string, sizeof(string), " Seifa nauda: $%d", SInfo[0][SafeMoney]);
SendClientMessage(playerid, COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_YELLOW, "|-----------------------------------------|");
SafeSave();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Tu neesi mērs!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Tu neesi pie seifa");
}
}
return 1;
}
if(strcmp(cmd, "/safecheck", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0, playerid, 361.4955, 174.7696, 1025.7891))
{
if(PlayerInfo[playerid][pLeader] == 7)
{
format(string, sizeof(string), " Pilsētas seifā ir $%d", SInfo[0][SafeMoney]);
SendClientMessage(playerid, COLOR_YELLOW, string);
SafeSave();
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Tu neesi mērs!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Tu neatrodies pie seifa!");
}
}
return 1;
}
if(strcmp(cmd, "/bank", true) == 0 || strcmp(cmd, "/deposit", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLocal] != 103)
{
SendClientMessage(playerid, COLOR_GREY, " Tu neatrodies bankā !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Lietojums: /bank [daudzums]");
format(string, sizeof(string), " Tev ir $%d tavā kontā.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
new cashdeposit = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Lietojums: /bank [daudzums]");
format(string, sizeof(string), " Tev ir $%d tavā kontā.", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_GRAD3, string);
return 1;
}
if (cashdeposit > PlayerInfo[playerid][pCash] || cashdeposit < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Tev nav tik daudz");
return 1;
}
PlayerInfo[playerid][pCash]-=cashdeposit;
new curfunds = PlayerInfo[playerid][pAccount];
PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount];
SendClientMessage(playerid, COLOR_WHITE, "|___ BANKAS KONTS ___|");
format(string, sizeof(string), " Vecā bilance: $%d", curfunds);
SendClientMessage(playerid, COLOR_GRAD2, string);
format(string, sizeof(string), " Nogūldijums: $%d",cashdeposit);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
format(string, sizeof(string), " Jaunā Bilance: $%d", PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
return 1;
}
if(strcmp(cmd, "/balance", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLocal] == 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))
{
format(string, sizeof(string), " Tev ir $%d tavā kontā.",PlayerInfo[playerid][pAccount]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Tu neatrodies bankā !");
return 1;
}
}
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)