Array too small?
#8

Please don't use format to copy a string

pawn Код:
//instead
format(gPlayerInfo[playerid][PLAYER_PASS], 129, "%s", newpassword);
//use
strcat((gPlayerInfo[playerid][PLAYER_PASS][0] = EOS, gPlayerInfo[playerid][PLAYER_PASS]), newpassword, 129);
Use ****** strcpy macro to keep it simple
pawn Код:
strcpy(gPlayerInfo[playerid][PLAYER_PASS], newpassword, 129);
Reply


Messages In This Thread
Array too small? - by LeeXian99 - 20.04.2013, 08:01
Re: Array too small? - by JaKe Elite - 20.04.2013, 08:05
Re: Array too small? - by LeeXian99 - 20.04.2013, 08:07
Re: Array too small? - by JaKe Elite - 20.04.2013, 08:17
Re: Array too small? - by LeeXian99 - 20.04.2013, 08:20
Re: Array too small? - by JaKe Elite - 20.04.2013, 08:27
Re: Array too small? - by HurtLocker - 20.04.2013, 09:16
Re: Array too small? - by Misiur - 20.04.2013, 10:33
Re: Array too small? - by Vince - 20.04.2013, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)