Raised This Month: $ Target: $400
 0% 

random_num issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 07-12-2013 , 00:23   random_num issue
Reply With Quote #1

Here's a part of my little plugin to filter player nicknames.

PHP Code:
public client_connect(id)
{
...
static 
pName[25];
get_user_name idpName24 );
if (
strlen(pName) < 4)
{
    
set_user_info(id"name""Short name!%d",random_num(1,999999))
    return 
PLUGIN_HANDLED
}
...

returns:

PHP Code:
error 088number of arguments does not match definition 
What's wrong?

Last edited by Mofforg; 07-12-2013 at 00:25.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
 



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 06:22.


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