No errors
#1

Hello guys!

I'm having some problems here:

pawn Код:
CMD:FPS(playerid, params[])
{
    if(FpsInVehicle[playerid] == 0 && FpsOnFoot[playerid] == 0)
    {
        SendClientMessage(playerid, -1,"You have {FF0000}ENABLED {FFFFFF}First Person!");
        FpsInVehicle[playerid] = 1;
        FpsOnFoot[playerid] = 1;
    }
    else
    {
        SendClientMessage(playerid, -1,"You have {FF0000}DISABLED {FFFFFF}First Person!");
        FpsInVehicle[playerid] = 0;
        FpsOnFoot[playerid] = 0;
    }
    return 1;
}
Pawn doesn't show errors ,but when i type it it says: SERVER:unknown command

What's wrong?
Reply
#2

Is this the only ZCMD command that is not working?
Reply
#3

Yes , and if i paste it in fs , fs won't load.
Reply
#4

Here is what i'm trying to do.
Reply
#5

don't use caps in the command line

cmd:fps
Reply
#6

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
don't use caps in the command line

cmd:fps
My PAWNO crashes , then.
Reply
#7

Try to change cmd text to the lowercase
Reply
#8

My mistake

pawn Код:
CMD:fps(playerid, params[])
{
    if(FpsInVehicle[playerid] == 0 && FpsOnFoot[playerid] == 0)
    {
        SendClientMessage(playerid, -1,"You have {FF0000}ENABLED {FFFFFF}First Person!");
        FpsInVehicle[playerid] = 1;
        FpsOnFoot[playerid] = 1;
    }
    else
    {
        SendClientMessage(playerid, -1,"You have {FF0000}DISABLED {FFFFFF}First Person!");
        FpsInVehicle[playerid] = 0;
        FpsOnFoot[playerid] = 0;
    }
    return 1;
}
Reply
#9

Quote:
Originally Posted by Tadas
Посмотреть сообщение
Try to change cmd text to the lowercase
Oh yeah.Thanks DD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)