Raised This Month: $ Target: $400
 0% 

SOLVED


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ArthHa
Member
Join Date: Apr 2014
Old 01-31-2017 , 18:47   SOLVED
#1

Hello, i want to create easiest way to use some of effects.

Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta_const>

public plugin_init ()
{
register_clcmd( "say /test", "Test" );
}

stock MakeFx(Client,const format[],{_,Float}:...)
{
if(format)
{
switch(format)
{
case "fxLightning":
{
// (sprite index) 
// (life in 0.1's) 
// (line width in 0.1's) 
// (noise amplitude in 0.01's) 
// (red)
// (green)
// (blue)
// (brightness)
// (scroll speed in 0.1's)

if(callfunc_begin("fxLightning") )
{
client_print(Client,print_chat,"function called and executed");
}
}
default:
{
//not found
return PLUGIN_HANDLED;
}
}
}
return PLUGIN_HANDLED;
}

public Test(id)
{
MakeFx( id, "fxLightning" );
}
and i get this error:

array must be indexed (variable -"format")

Any ideas?;D
__________________



Last edited by asherkin; 02-04-2017 at 13:03. Reason: Restored post.
ArthHa is offline
Send a message via Skype™ to ArthHa
 



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 20:53.


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