Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] (4770) : warning 213: tag mismatch

 
  • 0 Vote(s) - 0 Average
Pawn (4770) : warning 213: tag mismatch
Stones
Offline

Burgershot Member
Posts: 10
Threads: 2
Joined: Dec 2020
Reputation: 0
Location: United Kingdom
#1
2020-12-21, 02:01 AM
I'm finally returning to SAMP again after so many years, i'm just learning to code once again, not i'm getting a tag mismatch for this VIP stuff.

This is part of something that is displayed in the stats command, this is the command i'm getting the warning from.
PHP Code:
SendClientMessage(playerid, COLOR_GRAY, str);

format(str, sizeof(str), "> Age: [%d] | Money: [%d] | VIP: [%s]", Character[playerid][Age], Character[playerid][Cash], VIPRANKS[Character[playerid][pVIP]][0]); 

This is the SQL data saved upon registration.
PHP Code:
mysql_format(SQL_CONNECTION, query, sizeof(query), "UPDATE Accounts SET Admin = %d, VIP = %d WHERE SQLID = %d LIMIT 1",

Account[playerid][Admin],
Account[playerid][pVIP],
Account[playerid][SQLID]); 

And these are the ranks specifically used in as seen above
PHP Code:
VIPRANKS[Character[playerid][pVIP]][0] 

PHP Code:
new VIPRANKS[][] =
{
"None",
"Bronze",
"Silver",
"Gold",
"Lifetime"
}; 

Please forgive me if i'm missing something obvious :)
Stones
Offline

Burgershot Member
Posts: 10
Threads: 2
Joined: Dec 2020
Reputation: 0
Location: United Kingdom
#2
2020-12-21, 02:27 AM
Yep it was me being retarded.
changed

PHP Code:
VIPRANKS[Character[playerid][pVIP]][0] 

to 

PHP Code:
VIPRANKS[Account[playerid][pVIP]][0] 
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#3
2020-12-21, 06:43 AM
Glad you fixed it, those are the worst type of annoying errors - when you're sure that everything's fine and not seeing the obvious mistake(s), simply PAIN 😂
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
Stones
Offline

Burgershot Member
Posts: 10
Threads: 2
Joined: Dec 2020
Reputation: 0
Location: United Kingdom
#4
2020-12-21, 08:41 AM
(2020-12-21, 06:43 AM)Pinch Wrote: Glad you fixed it, those are the worst type of annoying errors - when you're sure that everything's fine and not seeing the obvious mistake(s), simply PAIN 😂
I haven't done anything since my samp Dayz ownership almost 3 years ago 😂 it's slowly coming back to me though haha.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode