23.09.2013, 15:28
Hello,I'm trying to make a filterscript,and it works,but for some reason if I type in "/hirado" my game freezes (crash)
Can someone help me?
Can someone help me?
Код:
#include <a_samp> public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/hirado", cmdtext, true, 10) == 0) { new string[128],name[24]; GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"{FF0000}Hнradу kцvetkezik! A stъdiуban {0099FF}%s!",name); SendClientMessageToAll(0xFF000000,string); for(new mindenki = 0; mindenki < MAX_PLAYERS; mindenki++) { PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/s/yi9hlwb51rpaek2/tenyek.wav?"); } return 1; }