15.01.2015, 12:25
Hello.
I wanted to make a Robbery System.
.. But when I add a robbery, I can't see nothing InGame... (no errors).
What can cause this?
What I did wrong?
Stock.
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;
What can cause this?
What I did wrong?
pawn Код:
public OnFilterScriptInit()
{
AddRobbery(2036.6178,1343.1643,10.8203, "Robbery!");
return 1;
}
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++;
}