12.12.2015, 17:16
Код:
TextDrawShowForPlayer(playerid, Textdraw0); new newtext[41], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(newtext, sizeof(newtext), "%s", name); TextDrawSetString(Textdraw0, newtext);
TextDrawShowForPlayer(playerid, Textdraw0); new newtext[41], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(newtext, sizeof(newtext), "%s", name); TextDrawSetString(Textdraw0, newtext);
Textdraw0 = TextDrawCreate(62.400012, 424.479980, "Alex"); TextDrawLetterSize(Textdraw0, 0.487600, 2.040533); TextDrawTextSize(Textdraw0, 45.600002, -148.959991); TextDrawAlignment(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 0); TextDrawSetOutline(Textdraw0, 1); TextDrawBackgroundColor(Textdraw0, 51); TextDrawFont(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1);
new newtext[41], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(newtext, sizeof(newtext), "%s", name); TextDrawSetString(Textdraw0, newtext); TextDrawShowForPlayer(playerid, Textdraw0);
new PlayerText:NameTD[MAX_PLAYERS];
NameTD[playerid] = CreatePlayerTextDraw(playerid, 62.400012, 424.479980, " ");
PlayerTextDrawLetterSize(playerid, NameTD[playerid], 0.487600, 2.040533);
PlayerTextDrawTextSize(playerid, NameTD[playerid], 45.600002, -148.959991);
PlayerTextDrawAlignment(playerid, NameTD[playerid], 1);
PlayerTextDrawSetShadow(playerid, NameTD[playerid], 0);
PlayerTextDrawSetOutline(playerid, NameTD[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, NameTD[playerid], 51);
PlayerTextDrawFont(playerid, NameTD[playerid], 0);
PlayerTextDrawSetProportional(playerid, NameTD[playerid], 1);
// formatting and setting the string.
new newtext[41], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(newtext, sizeof(newtext), "%s", name);
PlayerTextDrawSetString(playerid, NameTD[playerid], newtext);
PlayerTextDrawShow(playerid, NameTD[playerid]);
E:\NewSV\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level E:\NewSV\gamemodes\gf.pwn(4919) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4923) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4925) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4928) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4930) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4933) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4935) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4938) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4940) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4943) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4945) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4948) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4950) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4953) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4955) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4958) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4960) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4963) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4965) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4968) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4970) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4973) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(4975) : warning 213: tag mismatch E:\NewSV\gamemodes\gf.pwn(14204) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14205) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14206) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14207) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14208) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14209) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14210) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14211) : error 017: undefined symbol "playerid" E:\NewSV\gamemodes\gf.pwn(14212) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase