Létrehozza a megadott fájlt.[pawn]#define fcreate(%1) \\ fclose(fopen(\"%1\", io_write))[/pawn]Használata:fcreate(\"MyText.txt\");
Objecteknél is jó?
stock GivePlayerScore( iPlayer, iAmount ){ SetPlayerScore( iPlayer, GetPlayerScore( iPlayer ) + iAmount );} stock DeprivePlayerScore( iPlayer, iAmount ){ SetPlayerScore( iPlayer, GetPlayerScore( iPlayer ) - iAmount ); }
stock name(id) { new n[24]; return GetPlayerName(id,n,24);}
new bool: FALSE = false;#define SendFormatMessageToAll(%1,%2,%3) do{new sendfstring[128];format(sendfstring,128,(%2),%3);SendClientMessageToAll((%1),sendfstring);}while(FALSE)#define SendFormatMessage(%1,%2,%3,%4) do{new sendfstring[128];format(sendfstring,128,(%3),%4);SendClientMessage(%1,(%2),sendfstring);}while(FALSE)