Raised This Month: $ Target: $400
 0% 

Help [Plugin]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-11-2006 , 11:27   Re: Help [Plugin]
Reply With Quote #1

no after it salps him it ends the plugin until someone says lol again and calls up the plugin once more
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
happycappy
Junior Member
Join Date: May 2006
Location: NL
Old 07-12-2006 , 05:43   Re: Help [Plugin]
Reply With Quote #2

Ok, but how to get said "player got slapped because he/she said lol!" ?
__________________
7331
happycappy is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-12-2006 , 09:13   Re: Help [Plugin]
Reply With Quote #3

Code:
get_user_name(id,player) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0) show_hudmessage(id, "%i got slapped for saying lol", player)
i think that will do it
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-12-2006 , 10:29   Re: Help [Plugin]
Reply With Quote #4

Quote:
Originally Posted by Rolnaaba
i think that will do it
No, it won't. You'll get a buffer overlow. Also, you used %i for a string.

Code:
static player[33] get_user_name(id,player,32) set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 12.0) show_hudmessage(id, "%s got slapped for saying lol", player)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
happycappy
Junior Member
Join Date: May 2006
Location: NL
Old 07-12-2006 , 13:45   Re: Help [Plugin]
Reply With Quote #5

Tnx alot guys

Whoops, something wrong,

Welcome to the AMX Mod X 1.60-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team

Error: Symbol already defined: "get_user_name" on line 22
Warning: Symbol is never used: "player" on line 24
__________________
7331

Last edited by happycappy; 07-12-2006 at 13:49.
happycappy is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-12-2006 , 14:09   Re: Help [Plugin]
Reply With Quote #6

re-paste code
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
happycappy
Junior Member
Join Date: May 2006
Location: NL
Old 07-13-2006 , 02:13   Re: Help [Plugin]
Reply With Quote #7

How do u mean, copy the code from hawk, paste the another piece of code on it and then it should work? Ill give it try
__________________
7331
happycappy is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-13-2006 , 10:40   Re: Help [Plugin]
Reply With Quote #8

sounds you did something retarded, like "new get_user_name".
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
happycappy
Junior Member
Join Date: May 2006
Location: NL
Old 07-13-2006 , 12:51   Re: Help [Plugin]
Reply With Quote #9

Wtf you mean, well, i + karma for both u guys, u totally rock
__________________
7331
happycappy is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 07-14-2006 , 00:27   Re: Help [Plugin]
Reply With Quote #10

Quote:
re-paste code
I think he meant paste the code into the forum so we can see what Line 24 actually is for you.
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt 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 08:05.


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