ShowPlayerDialog(playerid,DIALOG_CASH_CARD,DIALOG_STYLE_INPUT,""COL_GREEN"Redeem Cash Card",""COL_WHITE"Redeem your cash card by entering the code down below:","Redeem","Cancel");
SendError(playerid,"Your cash card must be between 1 and 32 characters.");
ShowPlayerDialog(playerid,DIALOG_STYLE_INPUT,DIALOG_STYLE_LIST,""COL_GREEN"Redeem Cash Card",""COL_WHITE"Redeem your cash card by entering the code down below:\n\n"COL_RED"Your cash card code must be between 1 and 32 characters.","Redeem","Cancel");
return1;
}
// search database
mysql_format(dbHandle,szBigString,sizeof(szBigString),"SELECT * FROM `CASH_CARDS` WHERE `CODE` = '%e'",cash_card);
mysql_format(dbHandle,szBigString,sizeof(szBigString),"SELECT * FROM `CASH_CARDS_REDEEMED` WHERE `USER_ID`=%d AND `CASH_CARD_ID`=%d",GetPlayerAccountID(playerid),card_id);
SendClientMessageToAllFormatted(COLOR_GREY,"[SERVER]"COL_WHITE" %s(%d) has redeemed a "COL_GOLD"%s"COL_WHITE" cash card.",ReturnPlayerName(playerid),playerid,number_format(card_value));