13.01.2013, 13:03
Alguem ai tem alguma ideia de FS faz tempo que nгo faзo e to meio feio em relaзгo a script entгo queria algumas ideias de FS
#include a_samp
#define novofs "arquivo.pwn"
public OnFilterScriptInit()
{
new File:arq = fopen(novofs,io_write);
fwrite(arq,"#include a_samp\n\n\n");
fwrite(arq,"main()\n{\n\n}\n\n");
fwrite(arq,"public OnFilterScriptInit()\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnFilterScriptExit()\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerConnect(playerid)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerDisconnect(playerid, reason)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerSpawn(playerid)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerDeath(playerid, killerid, reason)\n{\n return 1;\n}\n\n");
fwrite(arq,"public OnPlayerCommandText(playerid, cmdtext[])\n{\n return 0;\n}\n\n");
fwrite(arq,"public OnPlayerText(playerid, text[])\n{\n return 1;\n}\n\n");
fclose(arq);
}
PHP код:
|
PHP код:
|