- 0
Problema verificare
-
Similar Content
-
Problema turf
By Soryn.,
- 3 answers
- 254 views
-
- 1 reply
- 177 views
-
Problema
By ImJustSlim,
- 3 answers
- 286 views
-
- 2 replies
- 157 views
-
- 1 answer
- 311 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
KiNGzOR
Salut SA-MP.ro! Astazi am o problema la o verificare. Am lucrat la un sistem de duel si din pacate nu merge aceasta verificare din dialog,o sa las dialogul mai jos.
Despre ce este vorba: Odata ce pune suma,daca nu are suma el merge,insa daca jucatorul pe care a dat /duel si pune suma chiar daca nu are banii,ii merge.
Dupa cum vedeti in dialogul de mai jos am facut sa-i zica,insa nu-i zice,dar daca el nu are banii ii zice,insa la jucatorul pe care a dat /duel nu-i zice. Va rog ajutati-ma
case DIALOG_DUEL_BET:
{
if(!response) return resetDuel(playerid);
else
{
new userid;
if(!IsNumeric(inputtext)) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Scrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
if(strval(inputtext) < 1 || strval(inputtext) > 1000000) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Scrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
if(GetPlayerMoney(playerid) < strval(inputtext)) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Nu detii suma pe care ai introdus-o.\nScrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
if(GetPlayerMoney(userid) < strval(inputtext)) return ShowPlayerDialog(playerid, DIALOG_DUEL_BET, DIALOG_STYLE_INPUT, "Duel System [Bet]", "Jucatorul nu are suma de bani pe care ai introdus-o.\nScrie suma pe care vrei sa o pariezi.\n(Suma poate fii intre $1 si $1,000,000", "Bet", "");
DuelBet[playerid] = strval(inputtext);
ShowPlayerDialog(playerid, DIALOG_DUEL_WEAPON, DIALOG_STYLE_LIST, "Duel System [Weapon Select]",
"Desert Eagle\nM4\nShotgun\nMP5\nSniper", "Select", "");
}
}
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.