AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem with compilator (https://forums.alliedmods.net/showthread.php?t=85497)

GwynBleidD 02-11-2009 13:47

Problem with compilator
 
I don't know is that correct sub-forum.

I tried to compile remake of the amxbans (i added unban by bid, kick reasons etc.). In first try the compiler reports me Errors from part of code that i didn't edit (I'm shure that original plugin is free of bugs), so i try to reinstall amxmodx compiler. When i done it i tried to compile again and the compiler blowed out. I killed the process of the compiler and try again with the same result.

Arkshine 02-11-2009 14:15

Re: Problem with compilator
 
Maybe should you attach your modified plugin here.

GwynBleidD 02-12-2009 11:23

Re: Problem with compilator
 
I prefer to not attach it here, i can send you it by e-mail.

GwynBleidD 02-26-2009 16:58

Re: Problem with compilator
 
1 Attachment(s)
I decided to attach the source, cuz noone helps me :/

Arkshine 02-26-2009 19:29

Re: Problem with compilator
 
cmdUnban.inl ; line 160 ; your line is too long.

By the way, I don't want to flame but not cool to get rid of the original plugin's author...

Kupo 02-27-2009 01:13

Re: Problem with compilator
 
No, no, no. We won't get rid of oryginal author. This change was because we are afraid copy our code before we will make whole plugin. :)

So don't be angry :crab:

(What should we do to make line shorter, this is the code for mysql)

Tnx 4 help

Arkshine 02-27-2009 05:45

Re: Problem with compilator
 
Use \

example :

Code:
format("INSERT INTO `%s` (player_id,player_ip,player_nick,admin_id,admin_nick,ban_type,ban_reason,ban_created,ban_length,server_ip,server_name,unban_created,unban_reason,unban_admin_nick, player_cfg_id) \ VALUES('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%i','UnBanned in Game','%s %s','%s')", \ 511, string,tbl_banhist,g_unban_player_steamid,player_ip,g_player_nick,g_admin_steamid,admin_nick,ban_type,ban_reason,ban_created,ban_length,server_ip,server_name,unban_created, g_unban_admin_nick, unban_admin_steamid, player_cfg_id)

It should work.

GwynBleidD 02-27-2009 09:27

Re: Problem with compilator
 
Ok thanks a lot, its finally compiled. I would give you karma but i cant :wink:


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

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