SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/05/2017, 01:09 AM   #11
JasonRiggs
Gangsta
 
Join Date: Jul 2016
Location: My bedroom.
Posts: 695
Reputation: 34
Default Re: PlayerData // tagmismatch

No he doesn't need to add pX or pY or pZ because they're added already I guess as
Code:
    pMarkX,
    pMarkY,
    pMarkZ,
I guess he just needs to convert pX and pY and pZ to pMarkX, pMarkY, pMarkZ

and change this
Code:
SendClientMessage(playerid,COLOR_GREY,string);
to this
Code:
SendClientMessage(playerid,COL_GREY,string);
__________________

forum.nc-rp.cf
Discord: Riggs ™#5210
JasonRiggs is offline   Reply With Quote
Old 25/05/2017, 01:11 AM   #12
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

Quote:
Originally Posted by JasonRiggs View Post
No he doesn't need to add pX or pY or pZ because they're added already I guess as
Code:
    pMarkX,
    pMarkY,
    pMarkZ,
I guess he just needs to convert pX and pY and pZ to pMarkX, pMarkY, pMarkZ
These variables could be in use of some other system not related to the actual position and you could screw it up.
__________________
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:12 AM   #13
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

PHP Code:
 SendClientMessage(playerid,0xAFAFAF,string); 
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,
    
pX,
    
pY,
    
pZ

XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 01:14 AM   #14
Arthur Kane
Gangsta
 
Join Date: Sep 2012
Posts: 772
Reputation: 115
Default Re: PlayerData // tagmismatch

Add Float before it.

Code:
Float: pX,
Float: pY,
Float: pZ,
Arthur Kane is offline   Reply With Quote
Old 25/05/2017, 01:18 AM   #15
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

Also, can you show us the command /AdminDuty (or similar) in your gm for reference?
__________________
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:18 AM   #16
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

Quote:
Originally Posted by Arthur Kane View Post
Add Float before it.

Code:
Float: pX,
Float: pY,
Float: pZ,


I tried it ..

ok wait a sec
XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 01:21 AM   #17
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

PHP Code:
COMMAND:aduty(playeridparams[])
{
    new 
string[128];
    if (
PlayerInfo[playerid][pPlayerLogged] == 0) return SendClientMessage(playeridCOLOR_WHITE"SERVER: You must be logged in to use this.");
    if(
PlayerInfo[playerid][pAdmin] >= 1)
    {
        switch(
PlayerInfo[playerid][pAdminDuty])
        {
            case 
0:
            {
                
PlayerInfo[playerid][pAdminDuty] = 1;
                
SetPlayerArmour(playerid100000);
                
SetPlayerHealth(playerid100000);
                
SetPlayerColor(playerid,COLOR_YELLOW);
                
format(stringsizeof(string),"AdmCmd: %s is now On-Duty as an admin."PlayerName(playerid));
                  
SendAdminMessage(COLOR_YELLOW,string);
            }
            case 
1:
            {
                
PlayerInfo[playerid][pAdminDuty] = 0;
                
SetPlayerArmourEx(playerid0);
                
SetPlayerHealthEx(playerid100);
                
SetPlayerColor(playeridCOLOR_WHITE);
                
format(stringsizeof(string),"AdmCmd: %s is now Off-Duty as an admin."PlayerName(playerid));
                  
SendAdminMessage(COLOR_YELLOW,string);
            }
        }
    }
    else
    {
        
SendClientMessage(playeridCOLOR_LIGHTRED"WARNING: You do not have access to this command.");
    }
    return 
1;

XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 01:22 AM   #18
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

Ok, you should be using
Code:
PlayerInfo[playerid][pX]
instead of
Code:
PlayerData[playerid][pX]
Always refer to other code in the gamemode you're editing to get an idea of how to make things work.
__________________
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:27 AM   #19
XxMadmanxX
Big Clucker
 
Join Date: Mar 2017
Posts: 73
Reputation: 1
Default Re: PlayerData // tagmismatch

I got another errors :/


Code:
J:\Documents and Settings\Boukortt\Bureau\samp\pawno\include\samp_addons.inc(376) : warning 213: tag mismatch
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(487) : warning 217: loose indentation
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(487) : error 014: invalid statement; not in switch
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(487) : warning 215: expression has no effect
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(487) : error 001: expected token: ";", but found ".."
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(487) : error 029: invalid expression, assumed zero
J:\Documents and Settings\Boukortt\Bureau\myserver\gamemodes\123123.pwn(487) : 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.
PHP Code:
case .. SCRIPT_FACTIONS:
        {
            if(
PlayerInfo[playerid][pRank] == 6)
            {
                return 
1
And tagmismatch didn't fix yet
XxMadmanxX is offline   Reply With Quote
Old 25/05/2017, 01:28 AM   #20
Toroi
Gangsta
 
Toroi's Avatar
 
Join Date: Feb 2017
Location: Venezuela
Posts: 730
Reputation: 146
Default Re: PlayerData // tagmismatch

Show us the error.

Seriously optimize your posts dude, this ain't ******** chat.

EDIT:

Post the entire code, a range of 15 lines before the error and 15 after.
__________________
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 01:55 PM.


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