SA-MP Forums Archive
Problem - 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: Problem (/showthread.php?tid=322856)



Problem - TheGamer! - 03.03.2012

I can't explain, what i'm trying to do...

I get these errors:
Код:
3dmenu.pwn(4) : error 010: invalid function or declaration
3dmenu.pwn(6) : error 001: expected token: "-identifier-", but found "3"
3dmenu.pwn(8) : error 020: invalid symbol name ""
3dmenu.pwn(8) : error 010: invalid function or declaration
3dmenu.pwn(11) : error 010: invalid function or declaration
3dmenu.pwn(16) : error 004: function "Create3DMenu" is not implemented
3dmenu.pwn(24) : warning 203: symbol is never used: ""
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
In this code:

pawn Код:
forward 3DMenu:Create3DMenu(Float:x, Float:y, Float:z, Float:drawdistance, caption[], virtualworld);

stock 3DMenu:Create3DMenu(Float:x, Float:y, Float:z, Float:drawdistance, caption[], virtualworld)
{
    new 3DText:Return;
    Return=Create3DTextLabel(caption, color, x, y, z, drawdistance, virtualworld, 0);
   
    return 3DMenu:Return;
}

public OnFilterScriptInit()
{
    Create3DMenu(0.0, 0.0, 0.0, 0.0, "", 0);
    return 1;
}



Re: Problem - SDraw - 17.05.2012

If you hasn't found solution yet, change all 3DMenu to Menu3D. Variable can't be started from numeral.


Re: Problem - TheGamer! - 24.06.2012

I thought it is 3DText:Create3DText, but it is Text3D... Thanks