[HELP] Robbery System. - 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: [HELP] Robbery System. (
/showthread.php?tid=557864)
[HELP] Robbery System. -
HY - 15.01.2015
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++;
}
Re: [HELP] Robbery System. -
Thoma - 15.01.2015
you doing it by checkpoints am i right?
Re: [HELP] Robbery System. -
HY - 15.01.2015
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.
Re: [HELP] Robbery System. -
Thoma - 15.01.2015
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?
Re: [HELP] Robbery System. -
HY - 15.01.2015
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.