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

Please Help Me Fix That Eror:


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Batman1.6
Junior Member
Join Date: May 2015
Location: in my home
Old 05-27-2015 , 08:01   Please Help Me Fix That Eror:
Reply With Quote #1

when compiling i get 2 warnings

1.-warning 213 tag mismatch
2.- warning 209 function "sayhandler should return a value.

the code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "HebChat"
#define VERSION "1.0"
#define AUTHOR "Nimrod"
new bool:Heb[33]
new const 
CharsHeb[][] = {"/","'","ק","ר","א","ט","ו","ן","ם","פ","ש","ד","ג","כ","ע","י","ח","ל","ך",";","'","ז","ס","ב","ה","נ","מ","צ","ת","ץ","/"}
new const 
CharsEng[][] = {"q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l",";","'","z","x","c","v","b","n","m",",",".","/"}
public 
plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("say""sayhandler")
}
public 
sayhandler(id)
{
 new 
Msg[120]
 
read_argsMsgcharsmaxMsg ) );
 
remove_quotesMsg );
 
 if(
equali(Msg"/heb"))
 
client_print(id,print_chat," :D"),Heb[id] = true
 
else if(equali(Msg"/eng"))
 
client_print(idprint_chat,"eng"),Heb[id] = false
 
if(Msg[0] != ('!' || '/' ) && Heb[id])
 {
 new 
MsgHeb[120],szName[32]
 
get_user_name(idszName,31)
 
ReverseString(Msg,MsgHeb)
 for(new 
0;<= sizeof CharsHeb 1;i++)
 
replace_all(MsgHeb,charsmax(MsgHeb), CharsEng[i],CharsHeb[i]) 
 if(
cs_get_user_team(id) == CS_TEAM_CT)
 {
 
client_print(0print_chat,"^3%s^1 : %s",szName,MsgHeb)
 return 
1;
 }
 else
 {
 
client_print(0print_chat,"^3%s^1 : %s",szName,MsgHeb)
 return 
1
 
}
 }

stock ReverseStringinput[ ], output[ ] ) 

 new 
ij
 
for(i  strleninput ) - 1>= i--, j++ ) 
 { 
 
output] = input]; 
 } 
 
output] = '^0'


Please Tell me how to fix them.
__________________
Please Help Me

Last edited by Batman1.6; 05-27-2015 at 15:51. Reason: code in php now
Batman1.6 is offline
Send a message via Skype™ to Batman1.6
Old 05-27-2015, 08:05
Batman1.6
This message has been deleted by Batman1.6.
Old 05-27-2015, 10:17
Batman1.6
This message has been deleted by Batman1.6.
Old 05-27-2015, 10:30
Batman1.6
This message has been deleted by Batman1.6. Reason: I saw that i need to wait 2 weeks,I am sory no bumping any more
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 05-30-2015 , 18:59   Re: Please Help Me Fix That Eror:
Reply With Quote #2

Maybe this

PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "HebChat"
#define VERSION "1.0"
#define AUTHOR "Nimrod"
new bool:Heb[33]
new const 
CharsHeb[][] = {"/","'","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?",";","'","?","?","?","?","?","?","?","?","?","/"}
new const 
CharsEng[][] = {"q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l",";","'","z","x","c","v","b","n","m",",",".","/"}
public 
plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_clcmd("say""sayhandler")
}
public 
sayhandler(id)
{
 new 
Msg[120]
 
read_argsMsgcharsmaxMsg ) );
 
remove_quotesMsg );
 
 if(
equali(Msg"/heb"))
 
client_print(id,print_chat," :D"),Heb[id] = true
 
else if(equali(Msg"/eng"))
 
client_print(idprint_chat,"eng"),Heb[id] = false
 
if(Msg[0] != '!' || Msg[0] != '/' && Heb[id])
 {
 new 
MsgHeb[120],szName[32]
 
get_user_name(idszName,31)
 
ReverseString(Msg,MsgHeb)
 for(new 
0;<= sizeof CharsHeb 1;i++)
 
replace_all(MsgHeb,charsmax(MsgHeb), CharsEng[i],CharsHeb[i]) 
 if(
cs_get_user_team(id) == CS_TEAM_CT)
 {
 
client_print(0print_chat,"^3%s^1 : %s",szName,MsgHeb)
 return 
1;
 }
 else
 {
 
client_print(0print_chat,"^3%s^1 : %s",szName,MsgHeb)
 return 
1
 
}
 }
 return 
0

stock ReverseStringinput[ ], output[ ] ) 

 new 
ij
 
for(i  strleninput ) - 1>= i--, j++ ) 
 { 
 
output] = input]; 
 } 
 
output] = '^0'

Krtola is offline
Send a message via Skype™ to Krtola
Batman1.6
Junior Member
Join Date: May 2015
Location: in my home
Old 05-31-2015 , 07:50   Re: Please Help Me Fix That Eror:
Reply With Quote #3

Holy Shit Krtola I fucking love you !!!!!!!!!

Thank you very much!!!!!

Not even one error.

Finally someone answered me

Bless you,you awesome ,nice and very very good person<3
__________________
Please Help Me

Last edited by Batman1.6; 05-31-2015 at 07:59.
Batman1.6 is offline
Send a message via Skype™ to Batman1.6
Batman1.6
Junior Member
Join Date: May 2015
Location: in my home
Old 05-31-2015 , 07:58   Re: Please Help Me Fix That Eror:
Reply With Quote #4

Can you please be my friend?
__________________
Please Help Me

Last edited by Batman1.6; 05-31-2015 at 08:00.
Batman1.6 is offline
Send a message via Skype™ to Batman1.6
Batman1.6
Junior Member
Join Date: May 2015
Location: in my home
Old 05-31-2015 , 08:02   Re: Please Help Me Fix That Eror:
Reply With Quote #5

How can I send you a friend request?
__________________
Please Help Me
Batman1.6 is offline
Send a message via Skype™ to Batman1.6
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 05-31-2015 , 09:10   Re: Please Help Me Fix That Eror:
Reply With Quote #6

Relax man,first test this plugin in game
Krtola is offline
Send a message via Skype™ to Krtola
Batman1.6
Junior Member
Join Date: May 2015
Location: in my home
Old 05-31-2015 , 10:42   Re: Please Help Me Fix That Eror:
Reply With Quote #7

Works fine , Thank you m8 (:

btw pal i am sending you a friend request,if you want than accept if not than dont.
__________________
Please Help Me
Batman1.6 is offline
Send a message via Skype™ to Batman1.6
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 11:35.


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