Rules FAQ Members List Search Register Login

 Raised This Month: \$209 Target: \$400 52%

Author Message
Junior Member
Join Date: Jul 2018
 01-10-2019 , 18:50   Problem #1 PHP Code: ``` #include  #include  #include  #include  #define PLUGIN  "[BG] Snow 1.2" #define VERSION "1.2" #define AUTHOR  "SHA[D]OW" #define get_bit(%1,%2)  (%1 & (1 << (%2 & MAXCLIENTS-1))) #define set_bit(%1,%2)  (%1 |= (1 << (%2 & MAXCLIENTS-1))) #define reset_bit(%1,%2)        (%1 &= ~(1 << (%2 & MAXCLIENTS-1))) #include  #include  #include  #include  #define MAXCLIENTS 32 #define CLASSNAME "SnowEntity" #define bg_num 4 new g_bAlive; new g_iMaxPlayers; new g_num[4]; new mg_sprite[4][] = {     "sprites/bg_snow/bg.spr",     "sprites/bg_snow/bg_b.spr",     "sprites/bg_snow/bg_c.spr",     "sprites/bg_snow/bg_d_1.spr" }; FVecIVec(Float:FVec[3], IVec[3]) {     IVec[0] = floatround(FVec[0], floatround_round);     IVec[1] = floatround(FVec[1], floatround_round);     IVec[2] = floatround(FVec[2], floatround_round);     return 1; } public plugin_init() {     register_plugin("[BG] Snow 1.2", "0.5", "SHA[D]OW");     register_event("HLTV", "Event_NewRound", "a", "1=0", "2=0");     new ent = create_entity("info_target");     entity_set_string(ent, 0, "SnowEntity");     entity_set_float(ent, EV_FL_nextthink, get_gametime() + 2.00);     register_think("SnowEntity", "ThinkSnow");     RegisterHam(Ham_Spawn, "player", "Ham_PlayerSpawn_Post", 1);     RegisterHam(Ham_Killed, "player", "HamPlayerKilled_Post", 1);     g_iMaxPlayers = get_maxplayers();     return 0; } public plugin_precache() {     new i = 0;     while (i < 4)     {         g_num[i] = precache_model(mg_sprite[i][0][0]);         i++;     }     return 0; } public Event_NewRound(id) {     set_fog(random_num(0, 255), random_num(0, 255), random_num(0, 255));     set_lights("e");     return 0; } public Ham_PlayerSpawn_Post(id) {     if (is_user_alive(id))     {         g_bAlive = 1 << id & 31 | g_bAlive;     }     return 0; } public HamPlayerKilled_Post(id) {     g_bAlive = ~1 << id & 31 & g_bAlive;     return 0; } public ThinkSnow(ent) {     entity_set_float(ent, EV_FL_nextthink, get_gametime() + 0.10);     static id;     id = 1;     while (id <= g_iMaxPlayers)     {         new var2 = g_bAlive;         new var1;         if (!1 << id & 31 & var2)         {             var1 = var2;         }         else         {             new Float:fOrigin[3];             new iOrigin[3];             entity_get_vector(id, 0, fOrigin);             FVecIVec(fOrigin, iOrigin);             iOrigin[0] = random_num(-1000, 1000) + iOrigin[0];             new var3 = iOrigin[1];             var3 = random_num(-1000, 1000) + var3;             new var4 = iOrigin[2];             var4 = random_num(200, 350) + var4;             new var5 = g_num;             UTIL_CreateSnow(iOrigin, var5[random(4)][0][0], 1, 1, 4);             var1 = var5;         }         id += 1;     }     return 0; } UTIL_CreateSnow(iOrigin[3], iSpriteID, iCount, iLife, iScale) {     message_begin(MSG_BROADCAST, SVC_TEMPENTITY, 1400, 0);     write_byte(15);     write_coord(iOrigin[0]);     write_coord(iOrigin[1]);     write_coord(iOrigin[2]);     write_coord(iOrigin[0]);     write_coord(iOrigin[1]);     write_coord(iOrigin[2]);     write_short(iSpriteID);     write_byte(iCount);     write_byte(iLife);     write_byte(iScale);     write_byte(random_num(1, 5));     write_byte(random_num(1, 3));     message_end();     return 0; } set_fog(red, green, blue) {     message_begin(MSG_ALL, get_user_msgid("Fog"), 1400, 0);     write_byte(red);     write_byte(green);     write_byte(blue);     write_long(964891247);     message_end();     return 0; }  ``` Last edited by hamzashadow; 01-16-2019 at 11:41.
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
 01-10-2019 , 18:57   Re: Problem Complie ( HELP ) #2 And? __________________
JocAnis
Veteran Member
Join Date: Jun 2010
 01-10-2019 , 20:17   Re: Problem Complie ( HELP ) #3 Why? __________________ KZ Public Autocup - PrimeKZ My blog: http://primekz.xyz (in progress...)
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
01-10-2019 , 23:11   Re: Problem Complie ( HELP )
#4

Quote:
 Originally Posted by hamzashadow What ?
Your title (which should be more specific) says that you have a problem yet you don't explain the problem. Always use a descriptive topic title and then explain your problem in english in your post. Also, post the the text of the errors (in this case the compiler output) that you are getting so that people can help you without having to be required to attempt compiling your code.
__________________

Last edited by fysiks; 01-10-2019 at 23:12.
eat1k
Senior Member
Join Date: Apr 2018
01-11-2019 , 01:30   Re: Problem Complie ( HELP )
#5

Quote:
 Originally Posted by hamzashadow PHP Code: ``` #include  #include  #include  #include  #define PLUGIN  "[BG] Snow 1.2" #define VERSION "1.2" #define get_bit(%1,%2)  (%1 & (1 << (%2 & MAXCLIENTS-1))) #define set_bit(%1,%2)  (%1 |= (1 << (%2 & MAXCLIENTS-1))) #define reset_bit(%1,%2)        (%1 &= ~(1 << (%2 & MAXCLIENTS-1))) #include  #include  #include  #include  #define MAXCLIENTS 32 #define CLASSNAME "SnowEntity" #define bg_num 4 new g_bAlive; new g_iMaxPlayers; new g_num[4]; new mg_sprite[4][] = {     "sprites/bg_snow/bg.spr",     "sprites/bg_snow/bg_b.spr",     "sprites/bg_snow/bg_c.spr",     "sprites/bg_snow/bg_d_1.spr" }; FVecIVec(Float:FVec[3], IVec[3]) {     IVec[0] = floatround(FVec[0], floatround_round);     IVec[1] = floatround(FVec[1], floatround_round);     IVec[2] = floatround(FVec[2], floatround_round);     return 1; } public plugin_init() {     register_plugin("[BG] Snow 1.2", "0.5", "SHA[D]OW");     register_event("HLTV", "Event_NewRound", "a", "1=0", "2=0");     new ent = create_entity("info_target");     entity_set_string(ent, 0, "SnowEntity");     entity_set_float(ent, EV_FL_nextthink, get_gametime() + 2.00);     register_think("SnowEntity", "ThinkSnow");     RegisterHam(Ham_Spawn, "player", "Ham_PlayerSpawn_Post", 1);     RegisterHam(Ham_Killed, "player", "HamPlayerKilled_Post", 1);     g_iMaxPlayers = get_maxplayers();     return 0; } public plugin_precache() {     new i = 0;     while (i < 4)     {         g_num[i] = precache_model(mg_sprite[i][0][0]);         i++;     }     return 0; } public Event_NewRound(id) {     set_fog(random_num(0, 255), random_num(0, 255), random_num(0, 255));     set_lights("e");     return 0; } public Ham_PlayerSpawn_Post(id) {     if (is_user_alive(id))     {         g_bAlive = 1 << id & 31 | g_bAlive;     }     return 0; } public HamPlayerKilled_Post(id) {     g_bAlive = ~1 << id & 31 & g_bAlive;     return 0; } public ThinkSnow(ent) {     entity_set_float(ent, EV_FL_nextthink, get_gametime() + 0.10);     static id;     id = 1;     while (id <= g_iMaxPlayers)     {         new var2 = g_bAlive;         new var1;         if (!1 << id & 31 & var2)         {             var1 = var2;         }         else         {             new Float:fOrigin[3];             new iOrigin[3];             entity_get_vector(id, 0, fOrigin);             FVecIVec(fOrigin, iOrigin);             iOrigin[0] = random_num(-1000, 1000) + iOrigin[0];             new var3 = iOrigin[1];             var3 = random_num(-1000, 1000) + var3;             new var4 = iOrigin[2];             var4 = random_num(200, 350) + var4;             new var5 = g_num;             UTIL_CreateSnow(iOrigin, var5[random(4)][0][0], 1, 1, 4);             var1 = var5;         }         id += 1;     }     return 0; } UTIL_CreateSnow(iOrigin[3], iSpriteID, iCount, iLife, iScale) {     message_begin(MSG_BROADCAST, SVC_TEMPENTITY, 1400, 0);     write_byte(15);     write_coord(iOrigin[0]);     write_coord(iOrigin[1]);     write_coord(iOrigin[2]);     write_coord(iOrigin[0]);     write_coord(iOrigin[1]);     write_coord(iOrigin[2]);     write_short(iSpriteID);     write_byte(iCount);     write_byte(iLife);     write_byte(iScale);     write_byte(random_num(1, 5));     write_byte(random_num(1, 3));     message_end();     return 0; } set_fog(red, green, blue) {     message_begin(MSG_ALL, get_user_msgid("Fog"), 1400, 0);     write_byte(red);     write_byte(green);     write_byte(blue);     write_long(964891247);     message_end();     return 0; }  ```
Coding as if we were in 2006. lol.
__________________
Nutu_
Veteran Member
Join Date: Mar 2016
Location: Germany
 01-11-2019 , 10:29   Re: Problem Complie ( HELP ) #6 what's the problem with that plugin man? you dont know to compile or what? __________________ a simple act of caring creates an endless ripple.
thEsp
Veteran Member
Join Date: Aug 2017
Location: Land of Eagles
 01-11-2019 , 11:22   Re: Problem Complie ( HELP ) #7 Literally most harsh thread I've ever seen. Congrats -_-
Junior Member
Join Date: Jul 2018
 01-16-2019 , 11:47 #8
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
 01-19-2019 , 14:32   Re: Problem #9 hamzashadow, if you want help, make your post subject descriptive and include a statement about your specific problem in the post. "Problem" and then posting code gives no information for where to start so you will likely get little to no help. __________________

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Server Discussion     Source Servers (SRCDS)     HL1 Servers (HLDS) AMX Mod X     News     Bug Reports     General     Off-Topic     Plugins         Suggestions / Requests         Approved Plugins         New Plugin Submissions         Unapproved/Old Plugins         Translation Request         High-Traffic Plugins             GunGame             UAIO (Ultimate All-In-One Plugin)             xREDIRECT             CSDM             AMX Super             RuneMod             Zombie Plague Mod             SuperHero Mod                 News                 Tech Support                 Scripting Help                 Off-Topic / General Chat                 Heroes                     Suggestions / Requests                     Approved Heroes                     New Submissions                     Unapproved/Old Heroes                         Module Heroes                     SuperHero Mod Stats - By 123                 (OLD) Bug Reports     Scripting         Scripting Help         Code Snippets/Tutorials         Module Coding     Donor Access SourceMod     News     General     Plugins         Plugins         Unapproved Plugins         Plugin/Gameplay Ideas and Requests         High-Traffic Plugins             SourceMod Anti-Cheat             Zombie:Reloaded             SourceBans / SourceBans++             VSH / Freak Fortress             Store             SM_Hosties             HLstatsX:CE     Scripting     Extensions     Snippets and Tutorials     Donor Access     Metamod: Source         Metamod:Source Plugins         Metamod:Source Questions         Coding MM:S Plugins & SM Extensions Hosted Stuff     Asherkin's Plugins         TFDodgeball         TF2Items         SteamTools     Bail's Plugins         CSDM         CS:S DM Off-Topic & Trash     Off-Topic     Trash

All times are GMT -4. The time now is 02:47.

 DMCA - Archive - Top