SA-MP Forums Archive
warning->Tag mistach. (stock) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warning->Tag mistach. (stock) (/showthread.php?tid=506604)



warning->Tag mistach. (stock) - yellow - 13.04.2014

Hey,

got a problem with my stock.
Код:
stock CreateQuestBox(playerid)
{
    Questbox[playerid] = CreatePlayerTextDraw(playerid,185.000000, 10.000000, "~n~~n~~n~");
	PlayerTextDrawBackgroundColor(playerid,Questbox[playerid], 255);
	PlayerTextDrawFont(playerid,Questbox[playerid], 1);
	PlayerTextDrawLetterSize(playerid,Questbox[playerid], 0.500000, 1.2);
	PlayerTextDrawColor(playerid,Questbox[playerid], -1);
	PlayerTextDrawSetOutline(playerid,Questbox[playerid], 0);
	PlayerTextDrawSetProportional(playerid,Questbox[playerid], 1);
	PlayerTextDrawSetShadow(playerid,Questbox[playerid], 1);
	PlayerTextDrawUseBox(playerid,Questbox[playerid], 1);
	PlayerTextDrawBoxColor(playerid,Questbox[playerid], 100);
	PlayerTextDrawTextSize(playerid,Questbox[playerid], 483.000000, 0.000000);
	return 1;
}
Код:
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(378) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(379) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(380) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(381) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(382) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(383) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(384) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(385) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(386) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(387) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(388) : warning 213: tag mismatch
C:\Program Files\Steam\SteamApps\common\GTA - 0.3z\gamemodes\***.pwn(393) : warning 213: tag mismatch
This warning says, that i have used a var wrong.
for example: i tried to save a float into an integer.

Someone know a solution?


Re: warning->Tag mistach. (stock) - superrobot48 - 13.04.2014

Try using (playerid) in all of the sentences and not [playerid]


AW: warning->Tag mistach. (stock) - yellow - 13.04.2014

No, Cause of
Код:
new PlayerTexT:Questbox[MAX_PLAYERS];
this isn't possible


Re: warning->Tag mistach. (stock) - Konstantinos - 13.04.2014

Change to:
pawn Код:
new PlayerText: Questbox[MAX_PLAYERS];



AW: warning->Tag mistach. (stock) - yellow - 13.04.2014

Thanks!