How to use that Traffic Signs Include?
#1

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
Reply
#2

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.
Reply
#3

How to use it IG than?
Reply
#4

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.
Reply
#5

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;
}
Reply
#6

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

the error is in your include.
not in the script.
Reply
#8

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...
Reply
#9

Bump...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)