[HELP] Robbery System.
#1

Hello.
I wanted to make a Robbery System.

pawn Код:
enum rInfo
{
    rText[32],
    Text3D:rLabel,
    rPick,
    Float:rX,
    Float:rY,
    Float:rZ
}
pawn Код:
new RobberyInfo[MAX_ROBBERY][rInfo];
new robberyid;
.. But when I add a robbery, I can't see nothing InGame... (no errors).

What can cause this?
What I did wrong?

pawn Код:
public OnFilterScriptInit()
{
    AddRobbery(2036.6178,1343.1643,10.8203, "Robbery!");
    return 1;
}
Stock.

pawn Код:
stock AddRobbery(Float:X, Float:Y, Float:Z, Text[])
{
    new string[128];
    format(string, sizeof(string), "{15FF00}Robbery ID: {FFFFFF}%d\n\n%s", robberyid, Text);
    RobberyInfo[robberyid][rPick] = CreatePickup(1239, 1, X, Y, Z, -1);
    RobberyInfo[robberyid][rLabel] = Create3DTextLabel(string, 0xFFFFFFFF, X, Y, Z, 30.0, 0);
    robberyid++;
}
Reply
#2

you doing it by checkpoints am i right?
Reply
#3

Quote:
Originally Posted by Thoma
Посмотреть сообщение
you doing it by checkpoints am i right?
No, lol.
What's the matter with checkpoints?
I don't have any checkpoints in code.
Reply
#4

Lol nothings wrong "With" them it just makes the Robbery system less complicated but as far as your code goes i dont see anything wrong. Did your server log say anything about it?
Reply
#5

Quote:
Originally Posted by Thoma
Посмотреть сообщение
Lol nothings wrong "With" them it just makes the Robbery system less complicated but as far as your code goes i dont see anything wrong. Did your server log say anything about it?
No. I said there's no errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)