- 0
Problema /dice
-
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
Sammich
Problema intalnita (descriere): Am un bug la comanda /dice ,deci poti sa dai dice si cand nu mai ai bani si iti da banu pe minus,si vreau sa ii fac ceva cand nu mai am bani sa imi dea un mesaj cu nu mai ai bani
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu):
------------------------------------------------------------------------------------------------------------------------------------
CMD:dice(playerid, params[])
{
new price, id;
if(sscanf(params, "ui", id, price)) return SendClientMessage(playerid, COLOR_GREY, "/dice [playerid] [price]");
if(playerVariables[playerid][pLevel] >= 1)
{
if(GetPlayerVirtualWorld(playerid)-BUSINESS_VIRTUAL_WORLD >= 1)
{
new businessID = GetPlayerVirtualWorld(playerid)-BUSINESS_VIRTUAL_WORLD;
if(businessVariables[businessID][bType] == 10)
{
if(playerVariables[playerid][pMoney] >= price)
{
if(IsPlayerInRangeOfPlayer(playerid, id, 4.0))
{
SetPVarInt(id, "bID", playerid);
SetPVarInt(id, "bPrice", price);
format(szMessage, sizeof(szMessage), "%s requested you to play a dice for $%d. Type /accept dice to accept!", playerVariables[playerid][pNormalName], price);
SCM(id, COLOR_TEAL, szMessage);
SCM(playerid, -1, "Request sent!");
}
else
{
SCM(playerid, -1, "This player is not below you!");
}
}
else
{
SCM(playerid, -1, "You don't have enough money!");
}
}
}
}
return 1;
}
------------------------------------------------------------------------------------------------------------------------------------
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da,am incercat sa ii pun o limita,dar tot nu merge
7 answers to this question
Recommended Posts