SetPlayerName only works once per user?
#6

pawn Код:
enum PLAYER_DATA_ARRAY
{
    name
}

new pInfo[MAX_PLAYERS][PLAYER_DATA_ARRAY];


public OnPlayerCommandText(playerid,cmdtext[])
{
    if(!strcmp(cmdtext,"/test",true))
    {
      GetPlayerName(playerid,pInfo[playerid][name],24);
      SetPlayerName(playerid,"Bob");
      SetPlayerName(playerid,pInfo[playerid][name]);
      return 1;
    }
    return 0;
}
I went in game and did that and it worked fine. It changed my name to bob then back to backwards97.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)