Argument Mismatch
#1

Код:
new PlayerText:MessagesTD;
Код:
new RandMsg[][] = {
	"Remember, to start your vehicle engine - Type /car engine",
	"To see your vehicle speed - Type /speedo",
	"**LAPD Notice** To Check Government Price Range just text pricelist to 911 ((/pricelist))",
	"Invite Players to our Server , if we saw them active we will give awesome rewards, Such as Luxury Cars and Houses!",
	"Want to donate to help our community stay alive, then ask an admin",
	"No admins on and you want to report someone? Make a player complaint on our forums(nextlife-rp.boards.net)!",
	"Check out our forums at nextlife-rp.boards.net!",
	"Donate to recieve certain rewards! It's a great way to fullen your experience!",
	"Please note that if you are having account issues to make an administrative request on our forums!",
	"We have a zero tolerancy rule for server advertising and hacking.",
	"Remember at all times on the server YOU MUST roleplay.",
	"Please remember to send all donations if you would like to keep us alive.",
	"Use /information to view our current information about our server.",
	"Type /rules , /tlaws and /speedlaws to see the Rules in our Server",
	"Looking for some visual help? You may /furtherhelp and an Assistants will be with you shortly.",
	"Wanting to become a Assistant? Help around on /ask and the Lead Chief Assistant will notice you."
};
Код:
forward ShowHelp();
public ShowHelp()
{
	new i = random(sizeof(RandMsg));
	foreach(Player, p)
	{
		TextDrawSetString(p, MessagesTD, RandMsg[i]); // Error Line
	}
}
Код:
MessagesTD = CreatePlayerTextDraw(playerid, 70.000000, 432.000000, "");
    PlayerTextDrawBackgroundColor(playerid, MessagesTD, 255);
    PlayerTextDrawFont(playerid, MessagesTD, 1);
    PlayerTextDrawLetterSize(playerid, MessagesTD, 0.220000, 1.000000);
    PlayerTextDrawColor(playerid, MessagesTD, -1);
    PlayerTextDrawSetOutline(playerid, MessagesTD, 0);
    PlayerTextDrawSetProportional(playerid, MessagesTD, 1);
    PlayerTextDrawSetShadow(playerid, MessagesTD, 1);
Reply
#2

Try this
pawn Код:
TextDrawSetString( MessagesTD, RandMsg);
Reply
#3

which argument? 1, 2 or 3?
Reply
#4

You are using player textdraws for something that should just be a global textdraw...

Create the MessagesTD textdraw under OnGameModeInit, show the textdraw to the player under OnPlayerConnect or OnPlayerSpawn, wherever you put it... then you can just update the message as normal and all players will see it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)