23.12.2013, 20:12
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);
All errors are:
What is wrong ?
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; }
Код:
error 076: syntax error in the expression, or invalid function call