SA-MP Forums Archive
Pickup With 3D Text - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pickup With 3D Text (/showthread.php?tid=265414)



Pickup With 3D Text - StandaxXx - 30.06.2011

Код:
stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])
{
    CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
    Create3DTextLabel(text[],0xFFFFFFFF,Float:X,Float:Y,Float:Z+0.75,40.0,0); //error 029: invalid expression, assumed zero
    return 1;
}
There is some problem with text variable but I cant find what problem. THX for help


Re: Pickup With 3D Text - langricr - 30.06.2011

Код:
stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])
{
    CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
    Create3DTextLabel(text[],0xFFFFFFFF,Float:X,Float:Y,Float:Z+0.75,40.0,0); //error 029: invalid expression, assumed zero
    return 1;
}
pawn Код:
stock CreatePickupWith3DText(model, type, Float:X, Float:Y, Float:Z, Virtualworld, text[])
{
    CreatePickup( model, type, X, Y, Z, Virtualworld );
    Create3DTextLabel( text, 0xFFFFFFFF, X, Y, Z+0.75, 40.0, 0 );
    return 1;
}
Try that