AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   i cant compile it pls help me (https://forums.alliedmods.net/showthread.php?t=108963)

byetovice 11-11-2009 13:46

i cant compile it pls help me
 
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 :grrr: please help me

Arkshine 11-11-2009 13:49

Re: i cant compile it pls help me
 
g_sprite = "sprites/zbeam3.spr" -> g_sprite = precache_model( "sprites/zbeam3.spr" );

byetovice 11-12-2009 06:05

Re: i cant compile it pls help me
 
:D thanks xD i forget it

byetovice 11-12-2009 07:14

Re: i cant compile it pls help me
 
i get this erro :
bad server message


All times are GMT -4. The time now is 13:40.

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