Quick question
#2

OnGameModeInit copy that
Код:
new blabla[2][MAX_PLAYER_NAME];
GetPartOfName("Stephen_Hawking", blabla);
and you can test without GTA
Код:
stock GetPartOfName(/*playerid*/PlayerName[], part[2])
{
    new
        namepart[2][MAX_PLAYER_NAME];/*,
        PlayerName[MAX_PLAYER_NAME];*/

    if(part == 0) {
//        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        split(PlayerName, namepart, '_');
        return namepart[0];
    }

    else if(part == 1) {
 //       GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        split(PlayerName, namepart, '_');
        return namepart[1];
    }

    else return null;
}
Reply


Messages In This Thread
Quick question - by Skylar Paul - 12.07.2011, 23:18
Re : Quick question - by sasuke78200 - 13.07.2011, 00:24
Re: Quick question - by Daren_Jacobson - 13.07.2011, 00:42
AW: Re: Quick question - by Nero_3D - 13.07.2011, 02:04
Re: AW: Re: Quick question - by Daren_Jacobson - 13.07.2011, 02:23
AW: Re: AW: Re: Quick question - by Nero_3D - 13.07.2011, 13:12
Re: Quick question - by Roko_foko - 13.07.2011, 13:30
Re: AW: Re: AW: Re: Quick question - by Daren_Jacobson - 13.07.2011, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)