help with forum name command pls
#1

PHP код:
CMD:forumname(playerid,params[])
{
    if(
pInfo[playerid][pAdminLevel] >= 2)
    {
        new 
targetid,FName[24],string[128];
        if(
sscanf(params"us[105]"targetid,FName)) return SendClientMessage(playerid,COLOR_LIGHTBLUE"CMD: /ForumName [PlayerID] [Nume]");
           if(!
IsPlayerConnected(targetid)) return SendClientMessage(playerid,-1,""chat" Acest player nu este online !");
        
pInfo[targetid][ForumName] = FName;
        
SaveStats(targetid);
        
format(string,sizeof(string),"*"COL_RED" %s %s has set %s's  forum name into %s"GetAdminName(playerid),PlayerName(playerid),PlayerName(targetid),FName);
        
SendClientMessageToAll(-1,string);
        
format(string,sizeof(string),"*"COL_RED" %s %s has set your FName to %s",GetAdminName(playerid), PlayerName(playerid),FName);
        
SendClientMessage(targetid,-1,string);
    }
    else {
        
SendClientMessage(playerid,-1,"*"COL_RED" You no admin!");
    }
    return 
1;

If I set my forumname into Elmer Fudd, at first it sets fine, but at relog it shows only "E"


PHP код:
enum playerinfo
{
    
ForumName[24],
 `
ForumNamevarchar(24NOT NULL,
               
cache_get_field_content(0"ForumName"tmp), pInfo[playerid][ForumName] = strval(tmp); 
why
Reply


Messages In This Thread
help with forum name command pls - by Zeus666 - 24.03.2018, 14:20
Re: help with forum name command pls - by jasperschellekens - 24.03.2018, 14:25
Re: help with forum name command pls - by Zeus666 - 24.03.2018, 14:33
Re: help with forum name command pls - by jasperschellekens - 24.03.2018, 14:42
Re: help with forum name command pls - by Infin1ty - 24.03.2018, 15:26
Re: help with forum name command pls - by Zeus666 - 24.03.2018, 19:29
Re: help with forum name command pls - by Grim_ - 25.03.2018, 02:51
Re: help with forum name command pls - by Zeus666 - 25.03.2018, 07:50
Re: help with forum name command pls - by Grim_ - 25.03.2018, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)