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