Raised This Month: $ Target: $400
 0% 

This doesn't work: create_entity(const name[])


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 01-19-2007 , 18:45   Re: This doesn't work: create_entity(const name[])
Reply With Quote #5

Look at the prototype:
native create_entity(szClassname[]);

It's not a
native create_entity(const szClassname[]);

That is why you should not use const keyword for your global. Just omit it in your example.

Using static has no sense here because of a global scope. AFAIK, global static vars are used to deny amx/x engine to access this var. It's hard to imagine for me an example when it's vital to use static declaration in global scope.
Simon Logic is offline
Send a message via Skype™ to Simon Logic
 



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 22:21.


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