Help - Wanted Level System Textdraws
#1

forward Wanted(playerid);
new Text:Wanted;

On Game Mode Init:
SetTimer("Wanted", 1000, true);
Wanted = TextDrawCreate(497.000000, 129.000000, " ");
TextDrawFont(Wanted, 1);
TextDrawLetterSize(Wanted, 0.310000, 1.499999);

Код:
public Wanted(playerid)
{
	if(GetPlayerWantedLevel(playerid) > 0)
	{
		TextDrawSetString(Text:Wanted, "1 star~n~use /fine for ~g~1000");
	    return 1;
	}
	if(GetPlayerWantedLevel(playerid) > 1)
	{
		TextDrawSetString(Text:Wanted, "2 stars~n~use /fine for ~g~2000");
	    return 1;
	}
	if(GetPlayerWantedLevel(playerid) > 2)
	{
		TextDrawSetString(Text:Wanted, "3 stars~n~use /fine for ~g~3000");
	    return 1;
	}
	if(GetPlayerWantedLevel(playerid) > 3)
	{
		TextDrawSetString(Text:Wanted, "4 stars~n~use /fine for ~g~4000");
	    return 1;
	}
	if(GetPlayerWantedLevel(playerid) > 4)
	{
		TextDrawSetString(Text:Wanted, "5 stars~n~use /fine for ~g~5000");
	    return 1;
	}
	if(GetPlayerWantedLevel(playerid) > 5)
	{
		TextDrawSetString(Text:Wanted, "6 stars~n~use /fine for ~g~6000");
	    return 1;
	}
	return 1;
}
All errors are:
Код:
error 076: syntax error in the expression, or invalid function call
What is wrong ?
Reply


Messages In This Thread
Help - Wanted Level System Textdraws - by maxy153 - 23.12.2013, 20:12
Re: Help - Wanted Level System Textdraws - by SilentSoul - 23.12.2013, 20:19
Re: Help - Wanted Level System Textdraws - by maxy153 - 23.12.2013, 20:23
Re: Help - Wanted Level System Textdraws - by SilentSoul - 23.12.2013, 20:27
Re: Help - Wanted Level System Textdraws - by maxy153 - 23.12.2013, 20:34
Re: Help - Wanted Level System Textdraws - by J4mmyHD - 23.12.2013, 20:36
Re: Help - Wanted Level System Textdraws - by maxy153 - 23.12.2013, 20:41
Re: Help - Wanted Level System Textdraws - by SilentSoul - 23.12.2013, 20:43

Forum Jump:


Users browsing this thread: 2 Guest(s)