24.04.2010, 15:27
pawn Код:
new jmeno[MAX_PLAYER_NAME];
GetPlayerName(playerid, jmeno, sizeof(jmeno));
new cesta[24] = "nakupy/"+jmeno+".txt"; //error

new jmeno[MAX_PLAYER_NAME];
GetPlayerName(playerid, jmeno, sizeof(jmeno));
new cesta[24] = "nakupy/"+jmeno+".txt"; //error
Originally Posted by ToMmY1547
pawn Код:
|
new jmeno[MAX_PLAYER_NAME];
GetPlayerName(playerid, jmeno, sizeof(jmeno));
new cesta[24] = "nakupy/\"+jmeno+\".txt"; //error
new cesta[24];
format(cesta,sizeof(cesta), "nakupy/%s.txt", jmeno);
new string[128], jmeno[MAX_PLAYER_NAME];
GetPlayerName(playerid, jmeno, sizeof(jmeno));
format(string, sizeof(string), "nakupy/%s.txt, jmeno);
//write to file ... ex: new File: hFile = fopen(string, io_write);
Originally Posted by SAWC™
Quote:
pawn Код:
|