Raised This Month: $ Target: $400
 0% 

Array sizes do not match.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 01-16-2007 , 10:19   Re: Array sizes do not match.
Reply With Quote #1

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