Player Textdraw problem,please help me.
#1

I defined all as:
new
Text: LoginTD[11],
PlayerText: LoginPTD[3];

The problem appears here: LoginPTD[3]
So...

==========THE ERROR=========
C:\pawno\include\systems.inc(367 : warning 215: expression has no effect
C:\pawno\include\systems.inc(367 : error 001: expected token: ";", but found "["
C:\pawno\include\systems.inc(367 : error 029: invalid expression, assumed zero
C:\pawno\include\systems.inc(367 : warning 215: expression has no effect
C:\pawno\include\systems.inc(367 : error 001: expected token: ";", but found "]"
C:\pawno\include\systems.inc(367 : fatal error 107: too many error messages on one line

==========TEXTDRAW=========
[spoiler] LoginPTD[playerid][1] = CreatePlayerTextDraw(playerid, 312.957336, 275.750000, "Last Login: 01.10.2018 20:00:00");
PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][1], 0.274436, 1.389999);
PlayerTextDrawTextSize(playerid, LoginPTD[playerid][1], 0.000000, 144.000000);
PlayerTextDrawAlignment(playerid, LoginPTD[playerid][1], 2);
PlayerTextDrawColor(playerid, LoginPTD[playerid][1], -1);
PlayerTextDrawUseBox(playerid, LoginPTD[playerid][1], 1);
PlayerTextDrawBoxColor(playerid, LoginPTD[playerid][1], 255);
PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][1], 255);
PlayerTextDrawFont(playerid, LoginPTD[playerid][1], 1);
PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][1], 0);

LoginPTD[playerid][2] = CreatePlayerTextDraw(playerid, 250.644073, 233.166671, "PAROLA: CLICK");
PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][2], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, LoginPTD[playerid][2], 378.000000, 0.000000);
PlayerTextDrawAlignment(playerid, LoginPTD[playerid][2], 1);
PlayerTextDrawColor(playerid, LoginPTD[playerid][2], -1);
PlayerTextDrawUseBox(playerid, LoginPTD[playerid][2], 1);
PlayerTextDrawBoxColor(playerid, LoginPTD[playerid][2], 255);
PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][2], 255);
PlayerTextDrawFont(playerid, LoginPTD[playerid][2], 1);
PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, LoginPTD[playerid][2], true);


========EDIT=======
I compiled the gamemod with Sublime Text 3
Reply
#2

You need to define
PHP код:
PlayerTextLoginPTD[3
as
PHP код:
PlayerTextLoginPTD[MAX_PLAYERS][3
Reply
#3

Post your line 367 completely
Reply
#4

doesn't work
Reply
#5

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
You need to define
PHP код:
PlayerTextLoginPTD[3
as
PHP код:
PlayerTextLoginPTD[MAX_PLAYERS][3
doesn't work :/
Reply
#6

I just tried this

PHP код:
new
TextLoginTD[11],
PlayerTextLoginPTD[MAX_PLAYERS][3];
Load(playerid){
    
LoginPTD[playerid][1] = CreatePlayerTextDraw(playerid312.957336275.750000"Last Login: 01.10.2018 20:00:00");
    
PlayerTextDrawLetterSize(playeridLoginPTD[playerid][1], 0.2744361.389999);
    
PlayerTextDrawTextSize(playeridLoginPTD[playerid][1], 0.000000144.000000);
    
PlayerTextDrawAlignment(playeridLoginPTD[playerid][1], 2);
    
PlayerTextDrawColor(playeridLoginPTD[playerid][1], -1);
    
PlayerTextDrawUseBox(playeridLoginPTD[playerid][1], 1);
    
PlayerTextDrawBoxColor(playeridLoginPTD[playerid][1], 255);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][1], 0);
    
PlayerTextDrawSetOutline(playeridLoginPTD[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridLoginPTD[playerid][1], 255);
    
PlayerTextDrawFont(playeridLoginPTD[playerid][1], 1);
    
PlayerTextDrawSetProportional(playeridLoginPTD[playerid][1], 1);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][1], 0);
    
LoginPTD[playerid][2] = CreatePlayerTextDraw(playerid250.644073233.166671"PAROLA: CLICK");
    
PlayerTextDrawLetterSize(playeridLoginPTD[playerid][2], 0.4000001.600000);
    
PlayerTextDrawTextSize(playeridLoginPTD[playerid][2], 378.0000000.000000);
    
PlayerTextDrawAlignment(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawColor(playeridLoginPTD[playerid][2], -1);
    
PlayerTextDrawUseBox(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawBoxColor(playeridLoginPTD[playerid][2], 255);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][2], 0);
    
PlayerTextDrawSetOutline(playeridLoginPTD[playerid][2], 0);
    
PlayerTextDrawBackgroundColor(playeridLoginPTD[playerid][2], 255);
    
PlayerTextDrawFont(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawSetProportional(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][2], 0);
    
PlayerTextDrawSetSelectable(playeridLoginPTD[playerid][2], true);

And it works fine, your error is somewhere else maybe
Reply
#7

Quote:
Originally Posted by v1k1nG
Посмотреть сообщение
You need to define
PHP код:
PlayerTextLoginPTD[3
as
PHP код:
PlayerTextLoginPTD[MAX_PLAYERS][3
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(20) : error 017: undefined symbol "MAX_PLAYERS"
C:\pawno\include\core.inc(12) : error 001: expected token: ";", but found "native"
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(3105) : error 017: undefined symbol "playertextid"
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(11842) : warning 213: tag mismatch
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(11842) : warning 202: number of arguments does not match definition
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(12470) : warning 202: number of arguments does not match definition
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(17427) : error 035: argument type mismatch (argument 2)
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(1742 : error 035: argument type mismatch (argument 2)
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(17430) : error 035: argument type mismatch (argument 2)
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(17432) : error 035: argument type mismatch (argument 2)
C:\Users\wNekiRo\Desktop\burned.ro\gamemodes\wa-rpg.pwn(34404) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Reply
#8

I forget to put an this textdraw
LoginPTD[playerid][0] = CreatePlayerTextDraw(playerid, 249.707031, 188.833358, "NUME: wNekiRo");
PlayerTextDrawLetterSize(playerid, LoginPTD[playerid][0], 0.400000, 1.600000);
PlayerTextDrawTextSize(playerid, LoginPTD[playerid][0], 377.000000, 0.000000);
PlayerTextDrawAlignment(playerid, LoginPTD[playerid][0], 1);
PlayerTextDrawColor(playerid, LoginPTD[playerid][0], -1);
PlayerTextDrawUseBox(playerid, LoginPTD[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, LoginPTD[playerid][0], 255);
PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, LoginPTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, LoginPTD[playerid][0], 255);
PlayerTextDrawFont(playerid, LoginPTD[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, LoginPTD[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, LoginPTD[playerid][0], 0);
PlayerTextDrawSetSelectable(playerid, LoginPTD[playerid][0], true);
Reply
#9

PHP код:
new
TextLoginTD[11],
PlayerTextLoginPTD[MAX_PLAYERS][3];
Load(playerid){
    
LoginPTD[playerid][0] = CreatePlayerTextDraw(playerid249.707031188.833358"NUME: wNekiRo");
    
PlayerTextDrawLetterSize(playeridLoginPTD[playerid][0], 0.4000001.600000);
    
PlayerTextDrawTextSize(playeridLoginPTD[playerid][0], 377.0000000.000000);
    
PlayerTextDrawAlignment(playeridLoginPTD[playerid][0], 1);
    
PlayerTextDrawColor(playeridLoginPTD[playerid][0], -1);
    
PlayerTextDrawUseBox(playeridLoginPTD[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridLoginPTD[playerid][0], 255);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][0], 0);
    
PlayerTextDrawSetOutline(playeridLoginPTD[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridLoginPTD[playerid][0], 255);
    
PlayerTextDrawFont(playeridLoginPTD[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridLoginPTD[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][0], 0);
    
PlayerTextDrawSetSelectable(playeridLoginPTD[playerid][0], true); 
    
    
LoginPTD[playerid][1] = CreatePlayerTextDraw(playerid312.957336275.750000"Last Login: 01.10.2018 20:00:00");
    
PlayerTextDrawLetterSize(playeridLoginPTD[playerid][1], 0.2744361.389999);
    
PlayerTextDrawTextSize(playeridLoginPTD[playerid][1], 0.000000144.000000);
    
PlayerTextDrawAlignment(playeridLoginPTD[playerid][1], 2);
    
PlayerTextDrawColor(playeridLoginPTD[playerid][1], -1);
    
PlayerTextDrawUseBox(playeridLoginPTD[playerid][1], 1);
    
PlayerTextDrawBoxColor(playeridLoginPTD[playerid][1], 255);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][1], 0);
    
PlayerTextDrawSetOutline(playeridLoginPTD[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridLoginPTD[playerid][1], 255);
    
PlayerTextDrawFont(playeridLoginPTD[playerid][1], 1);
    
PlayerTextDrawSetProportional(playeridLoginPTD[playerid][1], 1);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][1], 0);
    
LoginPTD[playerid][2] = CreatePlayerTextDraw(playerid250.644073233.166671"PAROLA: CLICK");
    
PlayerTextDrawLetterSize(playeridLoginPTD[playerid][2], 0.4000001.600000);
    
PlayerTextDrawTextSize(playeridLoginPTD[playerid][2], 378.0000000.000000);
    
PlayerTextDrawAlignment(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawColor(playeridLoginPTD[playerid][2], -1);
    
PlayerTextDrawUseBox(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawBoxColor(playeridLoginPTD[playerid][2], 255);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][2], 0);
    
PlayerTextDrawSetOutline(playeridLoginPTD[playerid][2], 0);
    
PlayerTextDrawBackgroundColor(playeridLoginPTD[playerid][2], 255);
    
PlayerTextDrawFont(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawSetProportional(playeridLoginPTD[playerid][2], 1);
    
PlayerTextDrawSetShadow(playeridLoginPTD[playerid][2], 0);
    
PlayerTextDrawSetSelectable(playeridLoginPTD[playerid][2], true);

Works normally. Also you may have redefined MAX_PLAYERS and some other macros too. Be sure to use your macro definition instead of MAX_PLAYERS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)