Raised This Month: $ Target: $400
 0% 

Array sizes do not match.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 01-16-2007 , 09:54   Re: Array sizes do not match.
Reply With Quote #1

Quote:
Originally Posted by dutchmeat View Post
shouldn't 'origin[]' in the stock func be a float ?
no because he is using get_user_origin()
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 01-16-2007 , 10:19   Re: Array sizes do not match.
Reply With Quote #2

Here a little better way with fakemeta and float:
Code:
#include <amxmodx> #include <amxmisc> #include <fakemeta> #define PLUGIN "Test" #define VERSION "1.0" #define AUTHOR "Administrator" enum info{     Float:ORIGIN[3],     STR[31] } new array[1][info] public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)    } public client_putinserver(id){     pev(id,pev_netname,array[0][STR],31)     pev(id,pev_origin,array[0][ORIGIN])     func(array[0][STR], array[0][ORIGIN]) }       //recommend use [],not [3] stock func(str[], Float:origin[]) {     console_print(0,"test:%s,%f,%f,%f",str,origin[0],origin[1],origin[2]) }
__________________

Last edited by schnitzelmaker; 01-16-2007 at 10:23.
schnitzelmaker 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 22:22.


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