Posts: 512
Threads: 121
Joined: Sep 2013
Can you help me give a sample demo of updating textdraw? for example.
I made a scoring text textdraw.
0/100
When I kill 1 enemey the 0 score will turn to 1.
thank you
Posts: 362
Threads: 36
Joined: Aug 2012
Reputation:
0
Can you show us your textdraw ?
Posts: 512
Threads: 121
Joined: Sep 2013
Quote:
Originally Posted by samp_boy
Can you show us your textdraw ?
|
Here. and Im using zamaroth textdraw editor ingame.
This is the Text for 0
Код:
// On top of script:
new Text:Textdraw0;
// In OnGameModeInit prefferably, we procced to create our textdraws:
Textdraw0 = TextDrawCreate(311.000000, 348.000000, "0");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 1.800000);
TextDrawColor(Textdraw0, -65281);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
Posts: 512
Threads: 121
Joined: Sep 2013
Little HELP
Код:
public OnPlayerUpdate(playerid)
{
new string[256];
format(string,sizeof(string),"~w~%d",GetPlayerScore(playerid));
TextDrawSetString(Textdraw0[playerid],string);
TextDrawShowForPlayer(playerid,Textdraw0[playerid]);
return 1;
}
Error line
TextDrawSetString(Textdraw0[playerid],string);
Код:
error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line