SA-MP Forums Archive
No errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: No errors (/showthread.php?tid=506578)



No errors - Dziugsas - 13.04.2014

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?


Re: No errors - Tanush123 - 13.04.2014

Is this the only ZCMD command that is not working?


Re: No errors - Dziugsas - 13.04.2014

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


Re: No errors - Dziugsas - 13.04.2014

Here is what i'm trying to do.


Re: No errors - Flake. - 13.04.2014

don't use caps in the command line

cmd:fps


Re: No errors - Dziugsas - 13.04.2014

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

cmd:fps
My PAWNO crashes , then.


Re: No errors - Tadas - 13.04.2014

Try to change cmd text to the lowercase


Re: No errors - Flake. - 13.04.2014

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;
}



Re: No errors - Dziugsas - 13.04.2014

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