(107) : warning 213: tag mismatch
#7

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
change
pawn Код:
format(string,sizeof(string),"Your Name: %s \nYour Cash: %d",pName,Money);//line 107
to
pawn Код:
format(string,sizeof(string),"Your Name: %s Your Cash: %d",pName,Money);//line 107
That is incorrect. That's not what shows the error.

The issue is that Money and pName are not "global mono-dimensional" variables (if that makes any sense?) but they are part of a multi-dimensional enum assigned to each player. In order to call them, you have to use pInfo[playerid][pName] and pInfo[playerid][Money] instead of pName and Money.

This should be correct:
pawn Код:
format(string,sizeof(string),"Your Name: %s \nYour Cash: %d", pInfo[playerid][pName], pInfo[playerid][Money]);
Reply


Messages In This Thread
(107) : warning 213: tag mismatch - by Guest123 - 30.05.2013, 11:17
Re: (107) : warning 213: tag mismatch - by GiamPy. - 30.05.2013, 11:21
Re: (107) : warning 213: tag mismatch - by Guest123 - 30.05.2013, 11:22
Re: (107) : warning 213: tag mismatch - by IceBilizard - 30.05.2013, 11:24
Re: (107) : warning 213: tag mismatch - by Guest123 - 30.05.2013, 11:26
Re: (107) : warning 213: tag mismatch - by SilverKiller - 30.05.2013, 11:28
Re: (107) : warning 213: tag mismatch - by GiamPy. - 30.05.2013, 11:28

Forum Jump:


Users browsing this thread: 2 Guest(s)