SA-MP Forums Archive
Tag Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag Problem (/showthread.php?tid=329390)



Tag Problem - Dan_Barocu - 28.03.2012

i made a simple thing but does this cmd make sendersname on and off?cause thats what i want to do..

PHP код:
if (strcmp("/ascn"cmdtexttrue) == 0)
                        {
                        if (
PlayerInfo[playerid][pAdmin] >= 1)
                        {
                    
Line:(23672)    ShowPlayerNameTagForPlayer(playerid,0);
                        }
                        
GameTextForPlayer(playerid"~W~Nume ~R~Oprit"50005);
                        return 
1;
                        }
                        if (
strcmp("/arn"cmdtexttrue) == 0)
                        {
                        if (
PlayerInfo[playerid][pAdmin] >= 1)
                        {
                    
Line:(23682)    ShowPlayerNameTagForPlayer(playerid1);
                        }
                        
GameTextForPlayer(playerid"~W~Nume ~R~pornit"50005);
                        return 
1;
                        } 
Warns:

(23672) : warning 202: number of arguments does not match definition
(23682) : warning 202: number of arguments does not match definition


Re: Tag Problem - FalconX - 28.03.2012

Quote:
Originally Posted by Dan_Barocu
Посмотреть сообщение
i made a simple thing but does this cmd make sendersname on and off?cause thats what i want to do..

PHP код:
if (strcmp("/ascn"cmdtexttrue) == 0)
                        {
                        if (
PlayerInfo[playerid][pAdmin] >= 1)
                        {
                    
Line:(23672)    ShowPlayerNameTagForPlayer(playerid,0);
                        }
                        
GameTextForPlayer(playerid"~W~Nume ~R~Oprit"50005);
                        return 
1;
                        }
                        if (
strcmp("/arn"cmdtexttrue) == 0)
                        {
                        if (
PlayerInfo[playerid][pAdmin] >= 1)
                        {
                    
Line:(23682)    ShowPlayerNameTagForPlayer(playerid1);
                        }
                        
GameTextForPlayer(playerid"~W~Nume ~R~pornit"50005);
                        return 
1;
                        } 
Warns:

(23672) : warning 202: number of arguments does not match definition
(23682) : warning 202: number of arguments does not match definition
I don't think there are such function as ShowPlayerNameTagForPlayer. I will only suggest you to visit the SAMP WIKI for learning the functions and checkout the tutorials section.

-FalconX


Re: Tag Problem - Dan_Barocu - 28.03.2012

there is ShowPlayerNameTagForPlayer..it makes above head name on and off