28.03.2009, 23:50
Код:
if(strcmp(cmdtext, "/lotto", true) == 0) { if (GetPlayerInterior(playerid) == 4) { MyLottoNumber[playerid] = random(100); new string[150]; format(string, 150,"[LOTTO]: Your number is %s. the lotto drawing is at 24:00.",MyLottoNumber[playerid]); SendClientMessage(playerid,COLOR_YELLOW,string); } else { SendClientMessage(playerid,COLOR_RED, "[!] You are not in the 24-7."); } return 1; }
"[LOTTO]: Your number is %s. the lotto drawing is at 24:00."
it ends up being something like
"[LOTTO]: Your number is Q. the lotto drawing is at 24:00."