PDA

View Full Version : warning->Tag mistach. (stock)


yellow
13/04/2014, 04:45 PM
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?

superrobot48
13/04/2014, 04:47 PM
Try using (playerid) in all of the sentences and not [playerid]

yellow
13/04/2014, 04:49 PM
No, Cause of
new PlayerTexT:Questbox[MAX_PLAYERS];this isn't possible

Konstantinos
13/04/2014, 04:57 PM
Change to:

new PlayerText: Questbox[MAX_PLAYERS];

yellow
13/04/2014, 04:59 PM
Thanks!