10.10.2012, 20:12
Quote:
Oy, I have another few things to say here...
1) Your command does not require sscanf parsing. It has one parameter only! pawn Код:
2) Your "var" array is a bit too small to contain larger e-mail addresses as their size, by rfcs, is allowed to up to 64 characters I believe. pawn Код:
3) You don't actually need multiple arrays to store these strings, you don't use any of them at the same time. So don't waste memory! And don't get the same player's name TWICE. pawn Код:
|
Код:
new string3[128]; new playername3[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername3, sizeof(playername3)); format(string3, sizeof(string3), "users/%s.ini", playername3); new File: hFile = fopen(string3, io_write); if (hFile) { strmid(PlayerInfo[playerid][pEmail], params, 0, strlen(params), 255); new var[64+1]; format(var, 32, "Email=%s\n", PlayerInfo[playerid][pEmail]);fwrite(hFile, var); } fclose(hFile);