Certain FS are not working
#1

Some filterscripts i add cause my gamemode commands to stop working but the filterscript ones work fine,how can i fix this??
Reply
#2

return 0 on OnPlayerCommandText.
Reply
#3

So that goes under it like this??

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
return 0;
{
Reply
#4

Tehnically, it goes like :

public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}

but what be probablly meant is that you should look up in the FILTERSCRIPTS for that, because if they return it, it won't work. Also, ZCMD disables OnPlayerCommandText.
Reply
#5

Changing it to this just gave me 7 errors about invalid function or declaration
Reply
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/blah", cmdtext, true, 10) == 0)
    {
        //blah
        return 1;
    }
    if (strcmp("/blah2", cmdtext, true, 10) == 0)
    {
        //blah
        return 1;
    }
    return 0;//return 0 here...
}
Reply
#7

6 errors this time,once again all invalid function or declaration. Here's a portion of the code

pawn Код:
public Door1Close(playerid)
{
    MoveObject(Door1, 250.57829285,62.77145767,1003.96960449, 0.5);
    SendClientMessage(playerid, Message_Close_Color, Close_Message);
    return 1;
}

public Door2Close(playerid)
{
    MoveObject(Door2, 248.08538818,75.28663635,1003.96960449, 0.5);
    SendClientMessage(playerid, Message_Close_Color, Close_Message);
    return 1;
}

public Door3Close(playerid)
{
    MoveObject(Door3, 243.69999695,75.31128693,1004.450012207,0.5);
    SendClientMessage(playerid, Message_Close_Color, Close_Message);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/Dooropen", true))
    {
        if(GetPlayerSkin(playerid) == 265 || 280 || 281 || 282 || 283 || 284 || 288)
        {
            if(IsPlayerInRangeOfPoint(playerid, 2.0, 249.4305,63.5593,1003.6406))
         {
                MoveObject(Door1, 250.578125, 61.020000457764, 1003.9696044922, 0.5);
                SetTimer("Door1Close", 5000, false);
            }
            else if(IsPlayerInRangeOfPoint(playerid, 2.0, 247.7019,76.2960,1003.6406))
            {
                MoveObject(Door2, 248.0849609375, 73.5, 1003.9696044922, 0.5);
                SetTimer("Door2Close", 5000, false);
            }
            else if(IsPlayerInRangeOfPoint(playerid, 2.0, 244.5161,75.7830,1003.9963))
            {
                MoveObject(Door3, 243.69921875, 73.400001525879, 1004.450012207, 0.5);
                SetTimer("Door3Close", 5000, false);
            }
        }
        else return SendClientMessage(playerid, Message_Color, Error_Message);
    }
    return 1;
}
Reply
#8

How can i advertise my server? What requirements do i need? Can All rep me Please i working so hard to get this server online and i really want to advertise it Please rep me.
Reply
#9

Quote:
Originally Posted by Kerlan
Посмотреть сообщение
How can i advertise my server? What requirements do i need? Can All rep me Please i working so hard to get this server online and i really want to advertise it Please rep me.
I dont recall posting this topic in the advertising section
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)