SA-MP Forums Archive
Tag problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag problem (/showthread.php?tid=144892)



Tag problem - XxerykxX - 29.04.2010

Hi.
I am getting this :

Код:
warning 213: tag mismatch
And this is my command :
Код:
if (strcmp(cmdtext, "/drift-on", true)==0)
	{
         TextDrawShowForPlayer(playerid, Textdraw0);
 		DriftTD[playerid] = 1;  // On this line is error
 		SendClientMessage(playerid,COLOR_LIGHTGREEN, "Licznik driftu został wlaczony.");
 		return 1;
	}



Re: Tag problem - Sascha - 29.04.2010

did you define it with
[MAX_PLAYERS]?



Re: Tag problem - Miguel - 29.04.2010

Quote:
Originally Posted by Sascha
did you define it with
[MAX_PLAYERS]?
Do you have a "DriftTD[MAX_PLAYERS]" in your script?


Re: Tag problem - Correlli - 29.04.2010

Quote:
Originally Posted by SAWC™
Do you have a "DriftTD[MAX_PLAYERS]" in your script?
Of course he does, because compiler isn't outputing an error, but warning (tag mismatch).

@XxerykxX: Are you sure that DriftTD array is a normal array, and not a float array or boolean array?


Re: Tag problem - XxerykxX - 29.04.2010

I have

new TextriftTD[200];

It is a drift counter


Re: Tag problem - Correlli - 29.04.2010

Remove the Text: tag as you're not using this as textdraw or are you?


Re: Tag problem - XxerykxX - 29.04.2010

I am using it as textdraw beacuse of showing up how many points you will get by drifting...