Como cerrar este codigo?
#4

pawn Код:
WritePlayer(text[],playerid, bool:filestart)
{
     new string[MAX_PLAYER_NAME+15];
     GetPlayerName(playerid,string,sizeof(string));
     format(string,sizeof(string),"Players/%s.ini",string);
     new File:player = fopen(string, io_append);
     if(!filestart) format(text,256,"\n%s",text);
     fclose((fwrite(player,text),player));
     //return text;
}
@Edit: Te modifique la funciуn un poco, no le veo posible utilidad a retornar la cadena de texto, sн lo necesitas para algo, desmarcalo del comentario.
Reply


Messages In This Thread
Como cerrar este codigo? - by Onfroi - 05.02.2013, 00:32
Respuesta: Como cerrar este codigo? - by Dreyfuz - 05.02.2013, 00:36
Respuesta: Como cerrar este codigo? - by Onfroi - 05.02.2013, 00:41
Respuesta: Como cerrar este codigo? - by WCrimson - 05.02.2013, 00:49
Respuesta: Como cerrar este codigo? - by Dreyfuz - 05.02.2013, 00:51
Respuesta: Como cerrar este codigo? - by oOFotherOo - 05.02.2013, 01:01
Respuesta: Como cerrar este codigo? - by Onfroi - 05.02.2013, 01:32
Respuesta: Como cerrar este codigo? - by Onfroi - 05.02.2013, 02:08
Respuesta: Como cerrar este codigo? - by WCrimson - 05.02.2013, 02:16
Respuesta: Como cerrar este codigo? - by Onfroi - 05.02.2013, 02:23

Forum Jump:


Users browsing this thread: 2 Guest(s)