Tag Problem
#1

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
Reply
#2

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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)