Quote:
Originally Posted by Carloselunico
no? comes to criticize but do not contribute anything.
pawn Код:
new ArrayGlobal[256]; #define GetFile(%0) \ ((format(ArrayGlobal, sizeof(ArrayGlobal), "players/%s.ini", Name(%0)), ArrayGlobal))
pawn Код:
stock Name(p) { new aux[MAX_PLAYER_NAME]; GetPlayerName(p, aux, sizeof(aux)); return aux; }
----------------------------------------------------
Look:
pawn Код:
if(!strcmp("/mifile", cmdtext, true)) { SendClientMessage(playerid, -1, GetFile(playerid)); // show file name text players/carlos.ini if(fexist(GetFile(playerid))) return SendClientMessage(playerid, -1, #ifexists); // if exist else SendClientMessage(playerid, -1, #Noexists); // if no exists return 1; }
|
No need for a 256 array size what is the purpose for that?