Raised This Month: $51 Target: $400
 12% 

whats wrong here...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
labelmaker
Member
Join Date: Mar 2009
Location: Kentucky USA
Old 03-14-2009 , 10:48   whats wrong here...
Reply With Quote #1

PHP Code:
public Action:Command_MyLocation(clientargs)
{
    new 
Float:vec[3];
    
GetClientEyePosition(clientvec);
    
PrintToChat("%f"vec); //getting a error 035: arg type mismatch

What am I doing wrong here
labelmaker is offline
Send a message via Skype™ to labelmaker
antihacker
Member
Join Date: Feb 2009
Old 03-14-2009 , 10:57   Re: whats wrong here...
Reply With Quote #2

%f only works with one value, not an array.

PHP Code:
public Action:Command_MyLocation(clientargs

    new 
Float:vec[3]; 
    
GetClientEyePosition(clientvec); 
    
PrintToChat("%f, %f, %f"vec[0], vec[1], vec[2]); //getting a error 035: arg type mismatch 

http://wiki.alliedmods.net/Format_Cl...eMod_Scripting)
antihacker is offline
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 17:30.


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