Raised This Month: $ Target: $400
 0% 

[HELP] Fix Bug! Please..... ZM Giant


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dailar
Member
Join Date: Mar 2017
Old 06-26-2017 , 12:43   Re: [HELP] Fix Bug! Please..... ZM Giant
Reply With Quote #9

Quote:
Originally Posted by Craxor View Post
why 'g_MyCamera[id]' is the first argument? set_pev have as first argument 'entity' (or Id as you want to understand ).

Checked your Create Camera function:
Code:
public Create_Camera(id) {     if(pev_valid(g_MyCamera[id]))         return         static Float:vAngle[3], Float:Angles[3]         pev(id, pev_origin, g_CameraOrigin[id])     pev(id, pev_v_angle, vAngle)     pev(id, pev_angles, Angles)     static Ent; Ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))     if(!pev_valid(Ent)) return     set_pev(Ent, pev_classname, CAMERA_CLASSNAME)     set_pev(Ent, pev_solid, 0)     set_pev(Ent, pev_movetype, MOVETYPE_NOCLIP)     set_pev(Ent, pev_owner, id)         engfunc(EngFunc_SetModel, Ent, CAMERA_MODEL)     static Float:Mins[3], Float:Maxs[3]         Mins[0] = -1.0     Mins[1] = -1.0     Mins[2] = -1.0     Maxs[0] = 1.0     Maxs[1] = 1.0     Maxs[2] = 1.0     entity_set_size(Ent, Mins, Maxs)     set_pev(Ent, pev_origin, g_CameraOrigin[id])     set_pev(Ent, pev_v_angle, vAngle)     set_pev(Ent, pev_angles, Angles)     fm_set_rendering(Ent, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0)    g_MyCamera[id] = Ent; }

You do not use enough well g_MyCamera array, what is the purpose of him, please explain.
its dias stuff
idk why he use it

its like 3d cam
dailar is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode