SA-MP Forums Archive
How to use that Traffic Signs Include? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to use that Traffic Signs Include? (/showthread.php?tid=497008)



How to use that Traffic Signs Include? - dimitri8 - 24.02.2014

Hey, I just wanna know how to use it IG that Traffic Signs Include and how to install it:
https://sampforum.blast.hk/showthread.php?tid=493325
I asked there but no body answers.... The


Re: How to use that Traffic Signs Include? - Bingo - 24.02.2014

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.


Re: How to use that Traffic Signs Include? - dimitri8 - 24.02.2014

How to use it IG than?


Re: How to use that Traffic Signs Include? - Bingo - 24.02.2014

Go through the include buddy, Use CreateDynamicObjectEx.

Код:
 CreateDynamicObjectEx(8548, x, y, z, 0.0, 0.0, rz, viewdistance, viewdistance);
8548 is Stop sign, Refer guide of objects.


Respuesta: How to use that Traffic Signs Include? - OTACON - 24.02.2014

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;
}



Re: How to use that Traffic Signs Include? - dimitri8 - 25.02.2014

I've an error :
Код:
d:\Users\User\Desktop\111\111\pawno\include\a_signs.inc(1) : error 010: invalid function or declaration



Re: How to use that Traffic Signs Include? - Avi Raj - 25.02.2014

the error is in your include.
not in the script.


Re: Respuesta: How to use that Traffic Signs Include? - dimitri8 - 25.02.2014

Quote:
Originally Posted by OTACON
Посмотреть сообщение
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;
}
When I'm creating sign, it doesnt create anything IG, and btw what's "Name File" What to write there? And should I do one more thing execpt put the include and that command and compile? Something else in the script / in scriptfiles and what to do...


Re: How to use that Traffic Signs Include? - dimitri8 - 25.02.2014

Bump...