AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fix Error (https://forums.alliedmods.net/showthread.php?t=171371)

kiki33hun 11-05-2011 06:25

Fix Error
 
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")



Evaldas.Grigas 11-05-2011 07:12

Re: Fix Error
 
What's the error?

sake 11-05-2011 08:20

Re: Fix Error
 
Quote:

Originally Posted by kiki33hun (Post 1590429)
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???

kiki33hun 11-05-2011 08:40

Re: Fix Error
 
Code:

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

...... :D

If(user conencted?


All times are GMT -4. The time now is 14:18.

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