using strmid I get blank string?
#3

And furthermore, for standard variable you could do
pawn Код:
strcpy(somevariable, lookstring);
Because in fact it is
pawn Код:
strcpy(somevariable, lookstring, sizeof(somevariable));
But pawn has problems with determining size of third dimension, so this code won't work:
pawn Код:
strcpy(PlayerInfo[playerid][pEmail], emailstring);
//in reality
strcpy(PlayerInfo[playerid][pEmail], emailstring, sizeof(PlayerInfo[playerid][pEmail]));
And you have to specify the size yourself:
pawn Код:
strcpy(PlayerInfo[playerid][pEmail], emailstring, 128);
Cheers
Reply


Messages In This Thread
using strmid I get blank string? - by erminpr0 - 28.10.2013, 08:48
Re: using strmid I get blank string? - by Konstantinos - 28.10.2013, 08:50
Re: using strmid I get blank string? - by Misiur - 28.10.2013, 09:13
Re: using strmid I get blank string? - by erminpr0 - 28.10.2013, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)