Tag mismatch
#1

I got error in pawno - Tag mismatch

Code
Quote:

stock OwnBusiness(playerid)
{
if(PlayerInfo[playerid][pBizKey] != -1 && !strcmp(GetPlayersName(playerid), BizInfo[PlayerInfo[playerid][pBizKey]][Owner]))
return true;
return false;
}

Reply
#2

Try stock bool:OwnBusiness(playerid)
Reply
#3

Still the same
Reply
#4

Take the return false out
Reply
#5

Make sure pBizKey exists in PlayerInfo and Owner in BizInfo. And do not take the return false out. You will get a warning saying that function should return a value.
Reply
#6

~Delete.
Reply
#7

post exactly error send and numbers lines to code
Reply
#8

Or return 1 instead of true and 0 instead of false.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)