{ Help-titel = TextDrawCreate(500, 130, "Help"); // line 3465 TextDrawLetterSize(Text:Help-titel, 0, 0); TextDrawTextSize(Text:Help-titel, 0, 0); TextDrawAlignment(Text:Help-titel, 0); TextDrawColor(Text:Help-titel, 48042); TextDrawUseBox(Text:Help-titel, 1); TextDrawSetShadow(Text:Help-titel, 0); TextDrawBoxColor(Text:Help-titel, -1347440726); TextDrawSetOutline(Text:Help-titel, 0); TextDrawBackgroundColor(Text:Help-titel, 170); TextDrawFont(Text:Help-titel, 1); TextDrawSetProportional(Text:Help-titel, 1); return 1; }
C:\server(3465) : error 022: must be lvalue (non-constant)
new:Text:Help-titel;
C:\Users\RP.pwn(3465) : error 001: expected token: "-identifier-", but found ":" C:\Users\RP.pwn(3466) : error 022: must be lvalue (non-constant)
{ new:Text:Help-titel; // 3465 Help-titel = TextDrawCreate(500, 130, "Help"); // line 3466 TextDrawLetterSize(Text:Help-titel, 0, 0); // line 3467 TextDrawTextSize(Text:Help-titel, 0, 0); // line 3468 TextDrawAlignment(Text:Help-titel, 0); TextDrawColor(Text:Help-titel, 48042); TextDrawUseBox(Text:Help-titel, 1); TextDrawSetShadow(Text:Help-titel, 0); TextDrawBoxColor(Text:Help-titel, -1347440726); TextDrawSetOutline(Text:Help-titel, 0); TextDrawBackgroundColor(Text:Help-titel, 170); TextDrawFont(Text:Help-titel, 1); TextDrawSetProportional(Text:Help-titel, 1); return 1; }
new Text:Help-titel;
new:Text:Help-titel;
Help-titel = TextDrawCreate(500, 130, "Help"); // line 3466
TextDrawLetterSize(Text:Help-titel, 0, 0); // line 3467
TextDrawTextSize(Text:Help-titel, 0, 0); // line 3468
TextDrawAlignment(Text:Help-titel, 0);
TextDrawColor(Text:Help-titel, 48042);
TextDrawUseBox(Text:Help-titel, 1);
TextDrawSetShadow(Text:Help-titel, 0);
TextDrawBoxColor(Text:Help-titel, -1347440726);
TextDrawSetOutline(Text:Help-titel, 0);
TextDrawBackgroundColor(Text:Help-titel, 170);
TextDrawFont(Text:Help-titel, 1);
TextDrawSetProportional(Text:Help-titel, 1);
dude at the top of the script not ongamemode init: oh my bad, delete the : after new so it will be : pawn Code: new Text:Help-titel; instead of : pawn Code: new:Text:Help-titel; now ongamemodeinit: pawn Code: Help-titel = TextDrawCreate(500, 130, "Help"); // line 3466 TextDrawLetterSize(Text:Help-titel, 0, 0); // line 3467 TextDrawTextSize(Text:Help-titel, 0, 0); // line 3468 TextDrawAlignment(Text:Help-titel, 0); TextDrawColor(Text:Help-titel, 48042); TextDrawUseBox(Text:Help-titel, 1); TextDrawSetShadow(Text:Help-titel, 0); TextDrawBoxColor(Text:Help-titel, -1347440726); TextDrawSetOutline(Text:Help-titel, 0); TextDrawBackgroundColor(Text:Help-titel, 170); TextDrawFont(Text:Help-titel, 1); TextDrawSetProportional(Text:Help-titel, 1); |
And change "Help-titel" with "Help_titel". You can't create variables with that character. |