SA-MP Forums Archive
[Help] Automatic Message - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Automatic Message (/showthread.php?tid=81287)



[Help] Automatic Message - borisblat - 09.06.2009

Код:
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


Re: [Help] Automatic Message - borisblat - 10.06.2009

hellpppp