Posts: 1,690
Threads: 18
Joined: Jul 2012
Reputation:
0
Download the include, Place all the files in there respective folders (eg: Trafficsign.inc in pawno > includes) and add at top of your gamemode #include <Trafficsign> .
Then, Re-compile your gamemode.
Posts: 4,930
Threads: 467
Joined: Dec 2010
24.02.2014, 20:13
(
Последний раз редактировалось OTACON; 24.02.2014 в 20:53.
)
pawn Код:
// ----<< Simple editor in-game >>----<
#include <a_samp>
#include <a_signs>
#include <zcmd>
#include <sscanf2>
new countsigns[MAX_PLAYERS];
COMMAND:createsigns(playerid, params[]){
new File:signs, data[30];
if(sscanf(params, "dss[20]", params[0], params[1], params[2])) return SendClientMessage(playerid, -1, "/createsigns (slotsigns(0-500)) (signsid(0-22)) (name file)");
countsigns[playerid]=params[0];
new Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerFacingAngle(playerid, pos[3]);
pos[1] = pos[1] + (5.0 * floatsin(-pos[3], degrees));
pos[2] = pos[2] + (5.0 * floatcos(-pos[3], degrees));
countsigns[playerid]=CreateTrafficSign(params[1], pos[0], pos[1], pos[2], pos[3]);
format(data,sizeof(data),"%s.txt",params[2]);
signs = fopen(data, io_append);
format(data, sizeof data, "count signs: %d - CreateTrafficSign(%d, %0.4f, %0.4f, %0.4f, %0.4f);\r\n\r\n",params[0], params[1], pos[0], pos[1], pos[2], pos[3]);
fwrite(signs,data);
fclose(signs);
return true;
}
Posts: 772
Threads: 79
Joined: Dec 2012
the error is in your include.
not in the script.