17.12.2010, 12:03
Pessoal Criei Estб Funзгo para escrever o nome do jogador, mas ela nгo cria o arquivo!
Код:
public OnPlayerConnect(playerid) { new plName[MAX_PLAYER_NAME]; GetPlayerName(playerid,plName, sizeof(plName)); new File:plconct = fopen("sampsc/playercontrol.txt", io_append); // Open the file fwrite(plconct, plName); // Write to the file (\r\n is for a new line) fclose(plconct); // Close the file return 1; }