04-24-2008, 10:18 AM
(04-23-2008, 04:54 PM)Jay link Wrote: Well, thats what I get for not properly looking over and testing my codeNo problem
Thanks for pointing it out, fixed.
we all get tired somtimeQuote:this section is nice
Errr... i have a problem idk how 2 send a pm to a player from rcon. this is the code for that:
theres nothing wrong with that code. you probebly didn't define argpos its here if u need it put it in your script but not in a callback:
Code:
argpos(const string[], idx = 0, sep = ' ')// (by yom)
{
for(new i = idx, j = strlen(string); i < j; i++)
if (string[i] == sep && string[i+1] != sep)
return i+1;
return -1;
}also i figured u copied that code from ladmin
anyway with "Invalid command length (exceeding 50 characters)"you might want to return false instead of true to stop the proccess.

ohh and i 4got u have to defien maX_playerid to your script to
so add
Code:
new max_playerid = 0;to your script

or you can do
Code:
#define max_playerid 0
hope i helpedi will add some more stuff later
