- 0
Problema bail
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
WiLi11
Nick:WiLi
Problema: Cand player-ul incearca sa de-a /bail nu merge... adica nu se intampla nimic.
Erori / warnings:=
Lini/script:[pawn]if(strcmp(cmd, "/bail", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJailed]==1)
{
if(JailPrice[playerid] > 0)
{
if(GetPlayerMoney(playerid) > JailPrice[playerid])
{
format(string, sizeof(string), "You bailed yourself out for: $%d", JailPrice[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, -JailPrice[playerid]);
JailPrice[playerid] = 0;
WantLawyer[playerid] = 0; CallLawyer[playerid] = 0;
PlayerInfo[playerid][pJailTime] = 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You can't afford the Bail Price !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You don't have a Bail Price !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not in Jail !");
}
}//not connected
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?:Da,dar nu stiu ce are...
2 answers to this question
Recommended Posts