Raised This Month: $ Target: $400
 0% 

Error: Must be a constant expression


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-21-2006 , 09:09   Error: Must be a constant expression
Reply With Quote #1

I get this error when compiling this line:
Error: Must be a constant expression; assumed zero on line 121
Code:
new Float:origin[3] = pev(id,pev_origin)

Whats wrong?
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 05-21-2006 , 09:24  
Reply With Quote #2

Code:
new Float:origin[3]; pev(id,pev_origin,origin);
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-21-2006 , 09:45  
Reply With Quote #3

Thx, working.
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Reply



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


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