29.10.2015, 13:55
Here is a little example:
PHP код:
new Text:TextDraw;
//OnGameModeInit
TextDraw = TextDrawCreate(450.0,230.0,"My textdraw");
TextDrawFont(TextDraw,0);
TextDrawLetterSize(TextDraw,1.0,0.4);
// ^^ becomes:
new PlayerText:TextDraw[MAX_PLAYERS];
//OnPlayerConnect
TextDraw[playerid] = CreatePlayerTextDraw(playerid,450.0,230.0,"My textdraw");
PlayerTextDrawFont(playerid,TextDraw[playerid],0);
PlayerTextDrawLetterSize(playerid,TextDraw[playerid],1.0,0.4);