Help with CMD!
#1

YCMDravila(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"GA:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new string[128];
format(string, sizeof(string), "* Igrac %s gleda pravila (/pravila).", GetName(playerid));
new info[8192];
// commands
ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
return 1;
}

And when i try /pravila it show me Server: Unknown command
Can you help me?
Reply
#2

is this code placed in filterscript or..?
Reply
#3

I reckon you are mixing YCMD and zcmd or something like that.
Reply
#4

we cant understand anything,translate it to enlish please and tell us whats the cmd supposed to do
Reply
#5

YCMD: rules (playerid, params [], help)
{
#pragma unused help
#pragma unused params
if (loggedplayer[playerid] == 0) return SCM (playerid, -1, "GA: RP |" RED "You must log in to use this command!"); //this line of code dosent do anything to server:unknown command i think
new string [128];
format (string, sizeof (string), "* Player% s is watching rules (/ rules).", GetName (playerid));
new info [8192];
// commands
ProxDetector (30.0, playerid, string, PROX, PROX, PROX, PROX, PROX);
return 1;
}
yes this is set in gamemode.
and cmd is changded whit ycmd
Reply
#6

PHP код:
YCMD:rules(playeridparams[])
{
    if(
loggedplayer[playerid] == 0) return SCM(playerid, -1"GA:RP |"RED"You must log in to use this command!");
    new 
string[128];
    
format(stringsizeof(string), "* Player %s is watching rules (/rules)."GetName(playerid));
    new 
info[8192];
    
ProxDetector(30.0playeridstringPROXPROXPROXPROXPROX);
    return 
1;

And btw try to use anything else instead of ProxDetector, it's a bit too outdated.
Reply
#7

Not working can someone fix this?
Reply
#8

what do u want to do with this command? I can't understand this language which is given in texts.
Reply
#9

PHP код:
stock NearbyMessage(playeridcolortext[])
{
    new 
FloatPlayerPosition[3];
    
    
GetPlayerPos(playeridPlayerPosition[0], PlayerPosition[1], PlayerPosition[2]);
    for(new 
iMAX_PLAYERSi++)
    {
        if(
IsPlayerInRangeOfPoint(i5PlayerPosition[0], PlayerPosition[1], PlayerPosition[2]))
        {
            
SendClientMessage(icolortext);
        }
    }

PHP код:
YCMD:rules(playeridparams[])
{
    if(
loggedplayer[playerid] == 0) return SCM(playerid, -1"GA:RP |"RED"You must log in to use this command!");
    new 
string[128];
    
format(stringsizeof(string), "* Player %s is watching rules (/rules)."GetName(playerid));
    
NearbyMessage(playeridPROXstring);
    return 
1;

Reply
#10

Quote:
Originally Posted by willbedie
Посмотреть сообщение
try to use anything else instead of ProxDetector, it's a bit too outdated.
It does what is acceptable, and if it needs to be updated, then it can be updated... The only 'updates' I have seen anyone make, is simply hack the crap out of it, and make it simply a cut-off, rather than the fade.

Quote:
Originally Posted by willbedie
Посмотреть сообщение
PHP код:
stock NearbyMessage(playeridcolortext[])
{
    new 
FloatPlayerPosition[3];
    
    
GetPlayerPos(playeridPlayerPosition[0], PlayerPosition[1], PlayerPosition[2]);
    for(new 
iMAX_PLAYERSi++)
    {
        if(
IsPlayerInRangeOfPoint(i5PlayerPosition[0], PlayerPosition[1], PlayerPosition[2]))
        {
            
SendClientMessage(icolortext);
        }
    }

Interesting, could be something to look at.

OP, I suggest you learn a bit more about scripting. If you haven't included the include for ycmds, or if you've got a callback or a filterscript that is returning the wrong return, it could cause trouble.

Show your include lines.

E.g.
Код:
#include <a_samp>
#include <streamer>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)