07.10.2014, 03:29
Hey, not sure how to add another textdraw to the login screen of my script. So far I have this code under OnGameModeInIt
Now, the above code only adds the black box under the login screen. I want to add my textdraw (saying "Exclusive Gaming v3.0" etc inside the box, and I've got the code (All co-ordinates are correct).
Can someone please tell me how I post this under the above textbox? If I paste it underneath, it says "undefined symbol "playerid" " and when I change the playerid to an "i" using "for(new i = 0; i < MAX_PLAYERS; i++)" again, it compiles fine, but no text comes up whatsoever inside the textdrawbox I created above it for the login screen. Could someone please show me how I can put the codes together so they both show, without "playerid" being undefined?
Any help would be appreciated! Thank you
pawn Код:
new Text:LoginDraw1;
for(new i = 0; i < MAX_PLAYERS; i++)
TextDrawShowForPlayer(i, LoginDraw1);
LoginDraw1 = TextDrawCreate(660.125000, 459.416717, "usebox");
TextDrawLetterSize(LoginDraw1, 0.000000, -13.643054);
TextDrawTextSize(LoginDraw1, -3.875000, 0.000000);
TextDrawAlignment(LoginDraw1, 1);
TextDrawColor(LoginDraw1, 0);
TextDrawUseBox(LoginDraw1, true);
TextDrawBoxColor(LoginDraw1, 180);
TextDrawSetShadow(LoginDraw1, 0);
TextDrawSetOutline(LoginDraw1, 0);
TextDrawBackgroundColor(LoginDraw1, -2139062017);
TextDrawFont(LoginDraw1, 0);
pawn Код:
new Text:Textdraw1;
TextDrawShowForPlayer(i, Textdraw1); // here
Textdraw1 = TextDrawCreate(86.875000, 347.666503, "Exclusive Gaming v3.0");
TextDrawLetterSize(Textdraw1, 0.926875, 3.513334);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 16777215);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 1);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 2);
TextDrawSetProportional(Textdraw1, 1);
Any help would be appreciated! Thank you