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

i cant compile it pls help me


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-11-2009 , 13:46   i cant compile it pls help me
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <hamsandwich>
#include <fakemeta>
#include <fun>
new g_sprite;
#define PLUGIN "center"
#define VERSION "1.0"
#define AUTHOR "author"
 

public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 
register_clcmd("laser_atk","atk_laser")
 
}
public 
plugin_precache()
{
g_sprite "sprites/zbeam3.spr"
}
public 
atk_laser(id)
{
new 
origin[3];
get_user_origin(id,origin,0);
message_beginMSG_BROADCAST,SVC_TEMPENTITY);
write_byte(0);
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2]);
write_coord(origin[0] + 50);
write_coord(origin[1]);
write_coord(origin[2]);

write_short(g_sprite);
write_byte(1);
write_byte(5);
write_byte(20);
write_byte(30);
write_byte(0);
write_byte(255);
write_byte(0);
write_byte(0);
write_byte(200);
message_end();
}
 
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 
error : /home/groups/amxmodx/tmp3/php3ZSSXK.sma(29 -- 30) : error 006: must be assigned to an array

i cant find the problem in code please help me
byetovice is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-11-2009 , 13:49   Re: i cant compile it pls help me
Reply With Quote #2

g_sprite = "sprites/zbeam3.spr" -> g_sprite = precache_model( "sprites/zbeam3.spr" );
__________________
Arkshine is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-12-2009 , 06:05   Re: i cant compile it pls help me
Reply With Quote #3

thanks xD i forget it

Last edited by byetovice; 11-12-2009 at 07:14.
byetovice is offline
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 11-12-2009 , 07:14   Re: i cant compile it pls help me
Reply With Quote #4

i get this erro :
bad server message
byetovice 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 01:30.


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