SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/05/2017, 12:08 AM   #1
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default PlayerData // tagmismatch

Error
Code:
J:\Documents and Settings\Boukortt\Bureau\samp\pawno\include\svAddons.inc(376) : warning 213: tag mismatch
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(357) : error 028: invalid subscript (not an array or too many subscripts): "PlayerData"
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(357) : warning 215: expression has no effect
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(357) : error 001: expected token: ";", but found "]"
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(357) : error 029: invalid expression, assumed zero
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(357) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Line 357
PHP Code:
GetPlayerPos(playeridPlayerData[playerid][pX], PlayerData[playerid][pY], PlayerData[playerid][pZ]); 
Line 376
PHP Code:
SendClientMessage(playerid,COLOR_GREY,string); 
Please help me and thanks
XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 12:10 AM   #2
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

Share with us your PlayerData enumerator and the COLOR_GREY value
__________________
Scripting Help in a nutshell

Quote:
Originally Posted by Thanks View Post
So.. hey everyone im trying to searching at ****** how to make leaderboard with Textdraws so i find many but Not in my brain...
Toroi is offline   Reply With Quote
Old 25/05/2017, 12:13 AM   #3
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

PlayerData

PHP Code:
enum PlayerData
{
    
pPass,
    
pCash,
    
pAdmin,
    
pHelper,
    
pDeaths,
    
pPlayerLogged,
    
pMute,
    
pKicks,
    
pKills,
    
pJails,
    
pWarnings,
    
pJailed,
    
pJailTime,
    
pAHide,
    
pAdminDuty,
    
pHelperDuty,
    
pReported,
    
pWeapons[50],
    
pSpectate,
    
pRegistered,
    
pModel,
    
pMember,
    
pRank,
    
pBanned,
    
pAdmName[128],
    
pHelName[128],
    
pSkinUsed,
    
pHelpMe,
    
pDesertEagleKills,
    
pMarkX,
    
pMarkY,
    
pMarkZ,
    
pDonator,
    
pFightStyle
    

COLOR_GREY

PHP Code:
#define COL_GREY "{0xAFAFAF}" 
XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 12:17 AM   #4
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

You need to add the pX, pY and pZ entries to your enumerator in order for you to use them.

As for the SendClientMessage, you're trying to put a string where you should be using an hexadecimal or integer number.

http://wiki.sa-mp.com/wiki/SendClientMessage

This problem is a good example of why you don't just copy-paste things into 'your' gamemode.
__________________
Scripting Help in a nutshell

Quote:
Originally Posted by Thanks View Post
So.. hey everyone im trying to searching at ****** how to make leaderboard with Textdraws so i find many but Not in my brain...
Toroi is offline   Reply With Quote
Old 25/05/2017, 12:19 AM   #5
oSAINTo
Huge Clucker
 
oSAINTo's Avatar
 
Join Date: Aug 2015
Posts: 220
Reputation: 35
Default Re: PlayerData // tagmismatch

Doesn't help you're using COLOR_GREY in your SendClientMessage but have it defined as COL_GREY.
oSAINTo is offline   Reply With Quote
Old 25/05/2017, 12:37 AM   #6
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

Quote:
Originally Posted by oSAINTo View Post
Doesn't help you're using COLOR_GREY in your SendClientMessage but have it defined as COL_GREY.
I changed it to

PHP Code:
SendClientMessage(playerid,COLOR_GREY,string); 
And i got the same errors/warning

Quote:
Originally Posted by Troydere View Post
You need to add the pX, pY and pZ entries to your enumerator in order for you to use them.
Can you please send me the code
XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 12:51 AM   #7
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

Any help please +rep
XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 12:55 AM   #8
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

What is so hard? Add these entries to your enumerator like the other ones already in there.

And the color should be defined as an integer, that means without the "" and {}. However if you change this you may broke other code so the easiest way is to put the HEX code in the color parameter inside the SendClientMessage function.

You'll never learn if all what you want is people to fix things for you.
__________________
Scripting Help in a nutshell

Quote:
Originally Posted by Thanks View Post
So.. hey everyone im trying to searching at ****** how to make leaderboard with Textdraws so i find many but Not in my brain...
Toroi is offline   Reply With Quote
Old 25/05/2017, 01:07 AM   #9
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

I did all what you said and i still got the same problems ...
XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 01:08 AM   #10
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

Show me how you did it.
__________________
Scripting Help in a nutshell

Quote:
Originally Posted by Thanks View Post
So.. hey everyone im trying to searching at ****** how to make leaderboard with Textdraws so i find many but Not in my brain...
Toroi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tagmismatch?? What is it? MAFIAWARS Scripting Help 6 24/09/2013 12:02 PM
enum avoid TagMismatch saamp Scripting Help 5 01/08/2013 11:42 PM
Erro tagmismatch MoitaGreen PortuguÍs/Portuguese 10 14/05/2013 12:26 AM
New Tagmismatch problem. NewYorkRP Help Archive 1 06/02/2010 09:15 PM


All times are GMT. The time now is 10:03 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.