27.07.2012, 07:40
It's :
because it's a variable...NOT strlen
Try that now...:P
pawn Код:
strval(inputtext);
pawn Код:
if(dialogid == DIALOG_BET5)
{
if(strval(inputtext) >= 1)
{
PokerCardsInfo[Pot] = PokerCardsInfo[Pot]+strval(inputtext);
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
new string[128];
format(string, sizeof(string), "%s has bet %d", Name, strval(inputtext));
ProxDetector(10.0, playerid, string, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
if(IsPlayerConnected(PokerCardsInfo[P6]))
{
ShowPlayerDialog(PokerCardsInfo[P6], DIALOG_POKER6, DIALOG_STYLE_LIST, "Poker", "Bet\nCheck\nFold", "Continue", "");
}
else
{
new str[128];
format(str, sizeof(str), "Everyone made their bets, the dealer should now /givecards.", Name);
ProxDetector(10.0, playerid, str, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
}
return 1;
}
else
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
new string[128];
format(string, sizeof(string), "%s has bet 0 and is out.", Name);
ProxDetector(10.0, playerid, string, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
PokerCardsInfo[P5] = 500;
PokerPlayerInfo[playerid][Playing] = 0;
if(IsPlayerConnected(PokerCardsInfo[P6]))
{
ShowPlayerDialog(PokerCardsInfo[P6], DIALOG_POKER6, DIALOG_STYLE_LIST, "Poker", "Bet\nCheck\nFold", "Continue", "");
}
else
{
new str[128];
format(str, sizeof(str), "Everyone made their bets, the dealer should now /givecards.", Name);
ProxDetector(10.0, playerid, str, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF);
}
return 1;
}
}