07.12.2010, 09:59
Hi.. recently i have created a liiiitlle script and dont work
The problem is..
When i type /random the script show me only: A player is LUCKY
or
A player is sad
(
how can i solve this problem?
Код:
if (strcmp("/random", cmdtext, true, 6) == 0) { if(IsPlayerConnected(playerid)) { new rand = random(3)+1; GetPlayerName(playerid, sendername, sizeof(sendername)); new random[MAX_PLAYERS]; if(rand == 3) { random = "happy"; random = "very happy"; random = "lucky"; } else { random = "sad"; } format(string, sizeof(string), "A player is %s", random); ProxDetector(10.0, playerid, string, COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK,COLOR_PINK); } return 1; }
When i type /random the script show me only: A player is LUCKY
or
A player is sad
(
how can i solve this problem?