Quote:
Originally Posted by admantis
pawn Код:
public TextdrawChange() { new new_txt = random(6); switch(new_txt) { case 0: TextDrawSetString(Textdraw0,"You are playing xxxxxxxxxxx"); case 1: TextDrawSetString(Textdraw0,"Spotted a cheater? Use /report to report him!"); case 2: TextDrawSetString(Textdraw0,"Are you lost? Use the command /help for common commands"); case 3: TextDrawSetString(Textdraw0,"Remember to donate to keep the server alive!"); case 4: TextDrawSetString(Textdraw0,"Do not ask administrator status, money or permissons!"); case 5: TextDrawSetString(Textdraw0,"Remember to always follow rules of the server!"); } }
Will that follow the same syntax?
|
Yes it will, I tested this one
pawn Код:
function TextdrawChange()
{
new new_txt = random(6);
switch(new_txt)
{
case 0: TextDrawSetString(Textdraw0,"You are playing xxx~b~xxxx~w~xxxx");
case 1: TextDrawSetString(Textdraw0,"Spotted a ~r~cheater? Use /~b~report to report him!");
case 2: TextDrawSetString(Textdraw0,"Are you~b~ lost? Use the command /help for common commands");
case 3: TextDrawSetString(Textdraw0,"Remember to donate to keep the server alive!");
case 4: TextDrawSetString(Textdraw0,"Do not ask administrator~b~ status, money or permissons!");
case 5: TextDrawSetString(Textdraw0,"Remember to always ~b~follow rules of the server!");
}
}
http://images.breakdown-rp.net/a1-mp-007.png