BUD::How to get a name to a string?
#2

try this:

pawn Код:
new name2[MAX_PLAYER_NAME];
            format(name2, MAX_PLAYER_NAME, "%s", DynamicHouses[houseid][hRenter1]);
            for(new i = 0; i < MAX_PLAYERS; ++i)
            {
                if(strcmp(name2, PlayerName(i), true))
                {
                    printf("naame2: %s", name2);
                    printf("PlayerName(i): %s", PlayerName(i));
                    printf("i: %d", i);
                }
            }
Reply


Messages In This Thread
strcmp fails? - by ddnbb - 10.08.2012, 18:37
Re: BUD::How to get a name to a string? - by MeDaKewlDude - 10.08.2012, 20:54
Re: BUD::How to get a name to a string? - by ddnbb - 10.08.2012, 21:18
Re: BUD::How to get a name to a string? - by Vince - 10.08.2012, 21:35
Re: BUD::How to get a name to a string? - by ddnbb - 10.08.2012, 21:48
Re: BUD::How to get a name to a string? - by MeDaKewlDude - 10.08.2012, 22:08
Re: BUD::How to get a name to a string? - by ddnbb - 10.08.2012, 22:45
Re: BUD::How to get a name to a string? - by ddnbb - 10.08.2012, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)