Errori na td


Započeo uinatsvima_, April 07, 2018, 14:36:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Errori
Dio skripte:
    BankaTD[playerid] = TextDrawCreate(156.845428, 431.583526, "~r~NEMA RACUNA");
	TextDrawLetterSize(BankaTD, 0.251801, 1.053331);
	TextDrawAlignment(BankaTD, 1);
	TextDrawColor(BankaTD, -1);
	TextDrawSetShadow(BankaTD, 0);
	TextDrawSetOutline(BankaTD, -1);
	TextDrawFont(BankaTD, 2);

        ZlatoTD[playerid] = TextDrawCreate(266.252105, 431.583526, "~r~5g");
	TextDrawLetterSize(ZlatoTD, 0.252802, 1.053331);
	TextDrawAlignment(ZlatoTD, 1);
	TextDrawColor(ZlatoTD, -1);
	TextDrawSetShadow(ZlatoTD, 0);
	TextDrawSetOutline(ZlatoTD, -1);
	TextDrawFont(ZlatoTD, 2);
	TextDrawSetProportional(ZlatoTD, 1);
	TextDrawSetShadow(ZlatoTD, 0);

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): ///
Slika/video ingame problema(obavezno ako je ingame problem): //////

Errori koji se pojavljuju:
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37466) : warning 213: tag mismatch
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37467) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37468) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37469) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37470) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37471) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37472) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37474) : warning 213: tag mismatch
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37475) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37476) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37477) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37478) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37479) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37480) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37481) : error 035: argument type mismatch (argument 1)
C:\Users\\Desktop\#Skriptanje ()\gamemodes\NKRPG.pwn(37482) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.10.4	 	 	Copyright (c) 1997-2006, ITB CompuPhase


14 Errors.

To treba da ti bude player textdraw da bi ti radilo..

Citat: Terzic poslato April 07, 2018, 14:37:56 POSLE PODNE
To treba da ti bude player textdraw da bi ti radilo..
Znaš kako da postavim? :( :( ??? ??? da bude tako

Probaj ovako :)
          BankaTD[ playerid ] = CreatePlayerTextDraw(playerid, 156.845428, 431.583526, "~r~NEMA RACUNA");
	  PlayerTextDrawLetterSize(playerid, BankaTD[ playerid ], 0.251801, 1.053331);
	  PlayerTextDrawAlignment(playerid, BankaTD[ playerid ], 1);
	  PlayerTextDrawColor(playerid, BankaTD[ playerid ], -1);
	  PlayerTextDrawSetShadow(playerid, BankaTD[ playerid ], 0);
	  PlayerTextDrawSetOutline(playerid, BankaTD[ playerid ], -1);
	  PlayerTextDrawFont(playerid, BankaTD[ playerid ], 2);

          ZlatoTD[ playerid ] = CreatePlayerTextDraw(playerid, 266.252105, 431.583526, "~r~5g");
	  PlayerTextDrawLetterSize(playerid, ZlatoTD[ playerid ], 0.252802, 1.053331);
	  PlayerTextDrawAlignment(playerid, ZlatoTD[ playerid ], 1);
	  PlayerTextDrawColor(playerid, ZlatoTD[ playerid ], -1);
	  PlayerTextDrawSetShadow(playerid, ZlatoTD[ playerid ], 0);
	  PlayerTextDrawSetOutline(playerid, ZlatoTD[ playerid ], -1);
	  PlayerTextDrawFont(playerid, ZlatoTD[ playerid ], 2);
	  PlayerTextDrawSetProportional(playerid, ZlatoTD[ playerid ], 1);
	  PlayerTextDrawSetShadow(playerid, ZlatoTD[ playerid ], 0);


Citat: #TheV1nny_ poslato April 07, 2018, 14:53:45 POSLE PODNE
Probaj ovako :)
          BankaTD[ playerid ] = CreatePlayerTextDraw(playerid, 156.845428, 431.583526, "~r~NEMA RACUNA");
	  PlayerTextDrawLetterSize(playerid, BankaTD[ playerid ], 0.251801, 1.053331);
	  PlayerTextDrawAlignment(playerid, BankaTD[ playerid ], 1);
	  PlayerTextDrawColor(playerid, BankaTD[ playerid ], -1);
	  PlayerTextDrawSetShadow(playerid, BankaTD[ playerid ], 0);
	  PlayerTextDrawSetOutline(playerid, BankaTD[ playerid ], -1);
	  PlayerTextDrawFont(playerid, BankaTD[ playerid ], 2);

          ZlatoTD[ playerid ] = CreatePlayerTextDraw(playerid, 266.252105, 431.583526, "~r~5g");
	  PlayerTextDrawLetterSize(playerid, ZlatoTD[ playerid ], 0.252802, 1.053331);
	  PlayerTextDrawAlignment(playerid, ZlatoTD[ playerid ], 1);
	  PlayerTextDrawColor(playerid, ZlatoTD[ playerid ], -1);
	  PlayerTextDrawSetShadow(playerid, ZlatoTD[ playerid ], 0);
	  PlayerTextDrawSetOutline(playerid, ZlatoTD[ playerid ], -1);
	  PlayerTextDrawFont(playerid, ZlatoTD[ playerid ], 2);
	  PlayerTextDrawSetProportional(playerid, ZlatoTD[ playerid ], 1);
	  PlayerTextDrawSetShadow(playerid, ZlatoTD[ playerid ], 0);

RADIIIIII HVALA KRALJU <3 :DDD