09.06.2013, 05:56
So, I am working on a credit system and one of the options is to get a house, now, when the player clicks on the house option it takes the amount of credits and it is suppose to send this message to an admin. "[CreditShop]: (NAME) has exchanged 100 credits for a house. Please issue it now."
However whenever I test it IG I get this message
"[CreditShop]: (NAME) has exchanged "
This is the code for the dialog option.
However whenever I test it IG I get this message
"[CreditShop]: (NAME) has exchanged "
This is the code for the dialog option.
Код HTML:
if(listitem == 5) // Gate { new string[42], giveplayerid, shopstring[512]; if(PlayerInfo[playerid][pCredits] < 100) { return SendClientMessageEx(playerid, COLOR_GREY, " You do not have enough Credits !"); } else { PlayerInfo[playerid][pCredits] = PlayerInfo[playerid][pCredits]-100; format(string, sizeof(string), "[CreditShop]: %s has exchanged 100 credits for a house. Please issue it now.", GetPlayerNameEx(giveplayerid)); ShopTechBroadCast(COLOR_SHOP, string); return SendClientMessageEx(playerid, COLOR_GREY, " You exchanged 100 Credits for a house gate. !"); } }