Format for Player Info?
#7

Quote:
Originally Posted by F1N4L
View Post
Format is slow in this case, use strcat:
Code:
strcat(Player[playerid][pPassword], inputtext);
Indeed strcat is recommended but you need to clear the destination before because it will "join" the strings and also specify the max size for it.
pawn Code:
#if !defined strcpy
    #define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif
and:
pawn Code:
strcpy(Player[playerid][pPassword], inputtext, 128);
Reply


Messages In This Thread
Format for Player Info? - by Luicy. - 27.05.2016, 15:41
Re: Format for Player Info? - by justjamie - 27.05.2016, 15:48
Re: Format for Player Info? - by Luicy. - 27.05.2016, 15:50
Re: Format for Player Info? - by SyS - 27.05.2016, 15:50
Re: Format for Player Info? - by Luicy. - 27.05.2016, 15:55
Re: Format for Player Info? - by F1N4L - 27.05.2016, 17:07
Re: Format for Player Info? - by Konstantinos - 27.05.2016, 17:15
Re: Format for Player Info? - by Luicy. - 27.05.2016, 17:25
Re: Format for Player Info? - by Sew_Sumi - 27.05.2016, 17:35
Re: Format for Player Info? - by Stinged - 27.05.2016, 17:36

Forum Jump:


Users browsing this thread: 2 Guest(s)