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

Solved solved


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 10-28-2016 , 08:50   solved
Reply With Quote #1

i need the help with this sp not compile,

PHP Code:

rank
.sp
//
// rank.sp(511) : warning 203: symbol is never used: "var1"
// rank.sp(628) : warning 203: symbol is never used: "var1"
// rank.sp(740) : warning 203: symbol is never used: "var1"
// rank.sp(803) : warning 203: symbol is never used: "var1"
// rank.sp(936) : warning 213: tag mismatch
// rank.sp(936) : error 001: expected token: ",", but found "["
// rank.sp(936) : error 029: invalid expression, assumed zero
// rank.sp(936) : error 001: expected token: ";", but found "]"
// rank.sp(936) : fatal error 190: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
//
// Compilation Time: 0.92 sec 
Attached Files
File Type: sp Get Plugin or Get Source (rank.sp - 166 views - 192.4 KB)

Last edited by Emilio3; 10-03-2017 at 16:41.
Emilio3 is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 10-28-2016 , 09:56   Re: please not compile this code 4 error
Reply With Quote #2

PHP Code:
SetConVarInt(FindConVar("l4d2_loot_c_drop_items"), RoundToNearest(AutodifficultyItems[playerscount][6][LootMod GetConVarInt(hm_items_supercharger_auto)]), falsefalse); 
You have 3 [] brackets there.
__________________
luki1412 is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 10-28-2016 , 11:23   Re: please not compile this code 4 error
Reply With Quote #3

Quote:
Originally Posted by luki1412 View Post
PHP Code:
SetConVarInt(FindConVar("l4d2_loot_c_drop_items"), RoundToNearest(AutodifficultyItems[playerscount][6][LootMod GetConVarInt(hm_items_supercharger_auto)]), falsefalse); 
You have 3 [] brackets there.
now to fix this

Last edited by Emilio3; 10-28-2016 at 11:25.
Emilio3 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 10-29-2016 , 02:36   Re: please not compile this code 4 error
Reply With Quote #4

Is this decompiled code??

PHP Code:
            SetConVarInt(FindConVar("l4d2_loot_c_drop_items"), RoundToNearest(AutodifficultyItems[playerscount][6] * (LootMod GetConVarInt(hm_items_supercharger_auto))), falsefalse); 
I got the line you wanted fixed to work, but this definately looks decompiled...

Spoiler


Spoiler

Last edited by headline; 10-29-2016 at 02:37.
headline is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 10-29-2016 , 04:07   Re: please not compile this code 4 error
Reply With Quote #5

Quote:
Originally Posted by Headline View Post
Is this decompiled code??

PHP Code:
            SetConVarInt(FindConVar("l4d2_loot_c_drop_items"), RoundToNearest(AutodifficultyItems[playerscount][6] * (LootMod GetConVarInt(hm_items_supercharger_auto))), falsefalse); 
I got the line you wanted fixed to work, but this definately looks decompiled...

Spoiler


Spoiler
i only take 4 error in compiler why you take 26....
you put the includes
#include <sdkhooks>
#include <clientprefs>
#include <core>
#include <sdkhooks>
#include <colors>
#include <geoip>
#include <socket>
#include <sourcemod>
fFIXED 2 ARRAYS
PHP Code:
//// 
wS_GetProfileId(clientString:steamid[])
{
    
decl String:var3[3][11];
    if (
ExplodeString(steamid":"var3311false) != 3)
    {
        return 
0;
    }
    new 
String:Identifier[20] = "76561197960265728";
    new 
Current;
    
decl CarryOver;
    
CarryOver var3[1][0] == '1';
    new 
16;
    
decl j;
    
strlen(var3[2]) + -1;
    new 
strlen(Identifier) + -1;
    while (
<= i)
    {
        new 
var1;
        if (
>= 0)
        {
            
var1 var3[2][j] + -12 2;
        }
        else
        {
            
var1 0;
        }
        new 
var2;
        if (
>= 0)
        {
            
var2 Identifier[k] + -48 1;
        }
        else
        {
            
var2 0;
        }
        
Current var2 var1 CarryOver;
        
CarryOver Current 10;
        
g_ProfileID[client][i] = Current 10 48;
        
i--;
        
j--;
        
k--;
    }
    
g_ProfileID[client][4] = MissingTAG:0;
    new 
Handle:socket SocketCreate(SocketType:1OnSocketError);
    
SocketSetArg(socketGetClientUserId(client));
    
SocketConnect(socketOnSocketConnectedOnSocketReceiveOnSocketDisconnected"steamcommunity.com"80);
    return 
0;
}  


rank.sp
//
// rank.sp(511) : warning 203: symbol is never used: "var1"
// rank.sp(628) : warning 203: symbol is never used: "var1"
// rank.sp(740) : warning 203: symbol is never used: "var1"
// rank.sp(803) : warning 203: symbol is never used: "var1"
// rank.sp(936) : warning 213: tag mismatch
// rank.sp(936) : error 001: expected token: ",", but found "["
// rank.sp(936) : error 029: invalid expression, assumed zero
// rank.sp(936) : error 001: expected token: ";", but found "]"
// rank.sp(936) : fatal error 190: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
//
// Compilation Time: 0.92 sec 
Attached Files
File Type: inc socket.inc (16.5 KB, 321 views)
File Type: inc colors.inc (25.5 KB, 308 views)

Last edited by Emilio3; 10-29-2016 at 05:03.
Emilio3 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-29-2016 , 05:01   Re: please not compile this code 4 error
Reply With Quote #6

Quote:
Originally Posted by Headline View Post
Is this decompiled code??
Yes.
__________________
asherkin is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 10-29-2016 , 08:57   Re: please not compile this code 4 error
Reply With Quote #7

Emilio3, most likely you need this: Link (file hardmod.sp and all files in folder hardmod).
__________________

Last edited by Grey83; 10-29-2016 at 08:57.
Grey83 is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 10-29-2016 , 09:10   Re: please not compile this code 4 error
Reply With Quote #8

Quote:
Originally Posted by Grey83 View Post
Emilio3, most likely you need this: Link (file hardmod.sp and all files in folder hardmod).
i have hardmod the problem is in 2 sp this is 1 rank with stast and autificulty etc but i have not the sp and the seconds with the ammobox etx , i have sp the seconds is working goos in my server, but i need the sp, this is is from descompiler lysis, from here
http://zambiland.ddns.net/downloads/...1.70_linux.rar
i need the tystast sp i change the name to rank.sp, i know the hardmod by jhony 0.29 but is old, this is full good, i have the superccop_light.sp but i need the tystats sp, i use lysis but i need the fix the sp i upload with the name rankl.sp
Blocked Attachments
File Type: smx tystats.smx

Last edited by Emilio3; 10-29-2016 at 09:18.
Emilio3 is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 10-29-2016 , 09:40   Re: please not compile this code 4 error
Reply With Quote #9

Grey83 i have this sp tystast but only with de !rank !top10 !top15 and top20 and color in points when you have the points you take body color, but i need add playtime headshots and tkblock inside of sp ,after i need the hardmod with not ammobox because i have the sp with full ammobox name l4d2_supercoop_light.sp, can you see the rank.sp and check all this things inside and add in this sp the playtime headshots and tkblock my friends
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_tystats_1.2.3.sp - 754 views - 21.3 KB)
Emilio3 is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 10-29-2016 , 09:51   Re: please not compile this code 4 error
Reply With Quote #10

look the cfg make for l4d2supercoop_lights
PHP Code:
// This file was auto-generated by SourceMod (v1.8.0.5942)
// ConVars for plugin "l4d2_supercoop_light.smx"


// -
// Default: "0"
hm_mapfinished "0"

// Time out for the barrel rain
// -
// Default: "25"
l4d2_ammo_airstrike_duration "25"

// Maximum radius of the barrel rain
// -
// Default: "1200"
l4d2_ammo_airstrike_radius "1200"

// Time out for the barrel rain
// -
// Default: "20"
l4d2_ammo_barrel_duration "20"

// Maximum radius of the barrel rain
// -
// Default: "350"
l4d2_ammo_barrel_radius "350"

// How much damage our blaze done
// -
// Default: "20"
l4d2_ammo_blazeDmg "20"

// How long our blaze remaind on.. Min: 1 sec, Max:60 sec.
// -
// Default: "211"
l4d2_ammo_blaze_life "211"

// The type of blaze
// -
// Default: "0"
l4d2_ammo_blaze_type "0"

// -
// Default: "3"
l4d2_ammo_bridewitches "3"

// -
// Default: "15"
l4d2_ammo_count "20"

// -
// Default: "50"
l4d2_ammo_count_bonus "50"

// damage at first,[1, 100]int
// -
// Default: "20"
l4d2_ammo_lightning_damage1 "20"

// damage per second,[1, 10]int
// -
// Default: "5"
l4d2_ammo_lightning_damage2 "5"

// lightning's life [30.0 -]
// -
// Default: "30"
l4d2_ammo_lightning_life "30"

// lightning transfer range [300.0, -]
// -
// Default: "500.0"
l4d2_ammo_lightning_range "500.0"

// 0, do not damage palyer if icapped, 1, always damage to palyer
// -
// Default: "0"
l4d2_ammo_lightning_todeath "0"

// -
// Default: "2"
l4d2_ammo_loot_bonus "2"

// Infected bosses glow color
// -
// Default: "255"
l4d2_ammo_matrix_colorbosses "255"

// Zombie glow color
// -
// Default: "16724223"
l4d2_ammo_matrix_colormobs "16724223"

// Witch glow color
// -
// Default: "16711910"
l4d2_ammo_matrix_colorwitch "16711910"

// Should infected glow during matrix time?
// -
// Default: "1"
l4d2_ammo_matrix_glowon "1"

// Matrix time duration, multiplied by resulting timescale modification
// -
// Default: "15"
l4d2_ammo_matrix_timer2 "15"

// Matrix timescale multiplier
// -
// Default: "0.35"
l4d2_ammo_matrix_ts "0.35"

// -
// Default: "5"
l4d2_ammo_medbox_count "5"

// starfall duration (s)
// -
// Default: "40"
l4d2_ammo_meteor_duration "40"

// explode damage of rock
// -
// Default: "60"
l4d2_ammo_meteor_explode_damage "60"

// explosion radius of rock
// -
// Default: "300"
l4d2_ammo_meteor_explode_radius "300"

// Radius fall of rocks
// -
// Default: "2500"
l4d2_ammo_meteor_radius "2500"

// -
// Default: "6"
l4d2_ammo_multipleboxes "6"

// -
// Default: "random"
l4d2_ammo_nextbox "random"

// -
// Default: "1"
l4d2_ammo_nohumantank "1"

//  Enable/Disable the Cloud Damage Stopping Reviving 
// -
// Default: "1"
l4d2_ammo_smoke_blocks_revive "1"

// <Red> <Green> <Blue> (0-255)
// -
// Default: "16 122 0"
l4d2_ammo_smoke_color "16 122 0"

//  Amount of damage the cloud deals every 2 seconds 
// -
// Default: "4.0"
l4d2_ammo_smoke_damage "4.0"

//  0 - Disabled; 1 - small HUD Hint; 2 - big HUD Hint; 3 - Chat Notification 
// -
// Default: "3"
l4d2_ammo_smoke_damage_message "3"

// How thick the smoke is
// -
// Default: "30"
l4d2_ammo_smoke_density "30"

// How long the cloud damage persists 
// -
// Default: "20.0"
l4d2_ammo_smoke_duration "20.0"

//  Radius of gas cloud damage 
// -
// Default: "300"
l4d2_ammo_smoke_radius "300"

//  Enable/Disable the Cloud Damage Shake 
// -
// Default: "1"
l4d2_ammo_smoke_shake "1"

// Path to the Soundfile being played on each damaging Interval
// -
// Default: "player/survivor/voice/choke_5.wav"
l4d2_ammo_smoke_sound_path "player/survivor/voice/choke_5.wav"

// Smoke Transparency (0-255)
// -
// Default: "155"
l4d2_ammo_smoke_transparency "155"

// chance of common infected [0.0, 100.0]
// -
// Default: "75.0"
l4d2_ammo_tiny_scale_infected "75.0"

// max size for common infected [min, 10.0]
// -
// Default: "0.9"
l4d2_ammo_tiny_scale_infected_max "0.9"

// min size for common infected [0.1, 10.0] 
// -
// Default: "0.4"
l4d2_ammo_tiny_scale_infected_min "0.4"

// chance of witch [0.0, 100.0]
// -
// Default: "80.0"
l4d2_ammo_tiny_scale_witch "80.0"

// max size for witch [min, 10.0]
// -
// Default: "2.0"
l4d2_ammo_tiny_scale_witch_max "2.0"

// min size for witch [0.1, 10.0]
// -
// Default: "0.4"
l4d2_ammo_tiny_scale_witch_min "0.4"

// -
// Default: "10"
l4d2_ammo_witches "10"

// -
// Default: "8"
l4d2_ammochance_acidbox "8"

// -
// Default: "4"
l4d2_ammochance_airstrikebox "4"

// -
// Default: "5"
l4d2_ammochance_barrelbox "5"

// -
// Default: "4"
l4d2_ammochance_bingobox "4"

// -
// Default: "4"
l4d2_ammochance_blazebox "4"

// -
// Default: "2"
l4d2_ammochance_bloodbox "2"

// -
// Default: "5"
l4d2_ammochance_bonusbox "5"

// -
// Default: "15"
l4d2_ammochance_boombox "15"

// -
// Default: "0"
l4d2_ammochance_boomerbox "0"

// -
// Default: "0"
l4d2_ammochance_bossbox "0"

// -
// Default: "4"
l4d2_ammochance_bridebox "4"

// -
// Default: "3"
l4d2_ammochance_bwbox "3"

// -
// Default: "0"
l4d2_ammochance_chargerbox "0"

// -
// Default: "6"
l4d2_ammochance_cloudbox "6"

// -
// Default: "0"
l4d2_ammochance_custombox1 "0"

// -
// Default: "0"
l4d2_ammochance_custombox2 "0"

// -
// Default: "0"
l4d2_ammochance_custombox3 "0"

// -
// Default: "0"
l4d2_ammochance_custombox4 "0"

// -
// Default: "0"
l4d2_ammochance_custombox5 "0"

// -
// Default: "0"
l4d2_ammochance_custombox6 "0"

// -
// Default: "0"
l4d2_ammochance_custombox7 "0"

// -
// Default: "1"
l4d2_ammochance_explodebox "1"

// -
// Default: "1"
l4d2_ammochance_explosionbox "1"

// -
// Default: "0"
l4d2_ammochance_failbox "0"

// -
// Default: "20"
l4d2_ammochance_firebox "20"

// -
// Default: "5"
l4d2_ammochance_flamebox "5"

// -
// Default: "25"
l4d2_ammochance_freezebox "25"

// -
// Default: "2"
l4d2_ammochance_grenadebox "2"

// -
// Default: "2"
l4d2_ammochance_hardbox "2"

// -
// Default: "10"
l4d2_ammochance_healbox "10"

// -
// Default: "0"
l4d2_ammochance_huntingbox "0"

// -
// Default: "30"
l4d2_ammochance_laserbox "30"

// -
// Default: "4"
l4d2_ammochance_lightningbox "4"

// -
// Default: "7"
l4d2_ammochance_matrixbox "7"

// -
// Default: "15"
l4d2_ammochance_medbox "15"

// -
// Default: "5"
l4d2_ammochance_meteorbox "5"

// -
// Default: "5"
l4d2_ammochance_multiplebox "5"

// -
// Default: "30"
l4d2_ammochance_nextbox "30"

// -
// Default: "300"
l4d2_ammochance_nothing "300"

// -
// Default: "35"
l4d2_ammochance_panicbox "35"

// -
// Default: "2"
l4d2_ammochance_pointsbox "2"

// -
// Default: "3"
l4d2_ammochance_realismbox "3"

// -
// Default: "2"
l4d2_ammochance_respawnbox "2"

// -
// Default: "0"
l4d2_ammochance_spitterbox "0"

// -
// Default: "8"
l4d2_ammochance_tankbox "8"

// -
// Default: "4"
l4d2_ammochance_tinybox "4"

// -
// Default: "12"
l4d2_ammochance_vomitbox "12"

// -
// Default: "2"
l4d2_ammochance_whitebox "2"

// -
// Default: "15"
l4d2_ammochance_witchbox "15"

// -
// Default: "0"
l4d2_blockvocalize "0"

// -
// Default: "0"
l4d2_bloodbox "0"

// -
// Default: "UKS-SuperCoop"
l4d2_config_name "UKS-SuperCoop"

// -
// Default: "custombox_command1 #"
l4d2_custombox_command1 "custombox_command1 #"

// -
// Default: "custombox_command2 #"
l4d2_custombox_command2 "custombox_command2 #"

// -
// Default: "custombox_command3 #"
l4d2_custombox_command3 "custombox_command3 #"

// -
// Default: "custombox_command4 #"
l4d2_custombox_command4 "custombox_command4 #"

// -
// Default: "custombox_command5 #"
l4d2_custombox_command5 "custombox_command5 #"

// -
// Default: "custombox_command6 #"
l4d2_custombox_command6 "custombox_command6 #"

// -
// Default: "custombox_command7 #"
l4d2_custombox_command7 "custombox_command7 #"

// -
// Default: "custombox1"
l4d2_custombox_name1 "custombox1"

// -
// Default: "custombox2"
l4d2_custombox_name2 "custombox2"

// -
// Default: "custombox3"
l4d2_custombox_name3 "custombox3"

// -
// Default: "custombox4"
l4d2_custombox_name4 "custombox4"

// -
// Default: "custombox5"
l4d2_custombox_name5 "custombox5"

// -
// Default: "custombox6"
l4d2_custombox_name6 "custombox6"

// -
// Default: "custombox7"
l4d2_custombox_name7 "custombox7"

// -
// Default: "0"
l4d2_hardbox "0"

// -
// Default: "91.121.155.105:27019"
l4d2_server_ip "91.121.155.105:27019"

// -
// Default: "UKSymbyosys"
l4d2_steam_group_name "UKSymbyosys" 
Emilio3 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 06:24.


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