warning 213: tag mismatch
#1

Hi, i got 2 warning after add TextDrawHideForPlayer for my status hungry system .

Quote:

CMD:tt(playerid, params[])
{
{
new string[128];
if(GetPVarInt(playerid, "statusbar") == 0)
{
TextDrawHideForPlayer(playerid, Status[0]);
TextDrawHideForPlayer(playerid, Status[1]);
DeletePVar(playerid, "statusbar");
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
}
return 1;
}

Reply
#2

try this

pawn Код:
CMD:tt(playerid, params[])
{
{
new string[128];
if(GetPVarInt(playerid, "statusbar") == 0)
{
TextDrawHideForPlayer(playerid, Status[0]);
TextDrawHideForPlayer(playerid, Status[1]);
DeletePVar(playerid, "statusbar");
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
return 1;
}
Reply
#3

Have you ever even heard of indentation..?

You need to tell us which LINE the error is on. Are we meant to guess? I am assuming it is the ProxDetector line. You have a space in 'COLOR_PURPL E'.

@iThePunisher It's better to tell him his mistake than spoonfeed him some code, as he won't learn from that.
Reply
#4

yes mate u right
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)