[Help] Automatic Message
#1

Код:
new WangCars[15] = {
	 411, 451, 429, 470, 471, 494, 506,
	 505, 522, 533, 539, 555, 557, 559
};
Код:
  SetTimer("WangCarsMessage", 300000,1);
Код:
forward WangCarsMessage();
public WangCarsMessage()
{
    new string[256];
    SendClientMessageToAll(YELLOW,  "]- - - - - - - [Server Announcment] - - - - - - -");
	  new newcar = WangCars[random(sizeof(WangCars))];
  	format(string, sizeof(string), ".[Wang Cars] .החלה, [%s] מכירת הרכב",VehicleNames[GetVehicleModel(newcar)-400]);
  	SendClientMessageToAll(LIGHTBLUE, string);
    SendClientMessageToAll(LIGHTBLUE, ".יש לכם 3 דקות, כדי למצוא רכב זה ולהביא אותו למוסך");
    SendClientMessageToAll(YELLOW,  ".40,000$ : הפרס למי שיביא את הרכב עומד על");
    SendClientMessageToAll(YELLOW,  "- - - - - - - [Server Announcment] - - - - - - -");
}
why it's writes me only the line "]- - - - - - - [Server Announcment] - - - - - - -" ?
:S

edit: btw when i delete these lines:

new newcar = WangCars[random(sizeof(WangCars))];
format(string, sizeof(string), ".[Wang Cars] .החלה, [%s] מכירת הרכב",VehicleNames[GetVehicleModel(newcar)-400]);
SendClientMessageToAll(LIGHTBLUE, string);

it works, but i need these lines
Reply
#2

hellpppp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)