Commands Not Working IG - 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: Commands Not Working IG (
/showthread.php?tid=549469)
Commands Not Working IG - Diti1 - 06.12.2014
Hey boys i made new command for my server but
its not working on game when i login and i write it
it says "Unknown command"
Script:
PHP код:
COMMAND:Driverlicen(playerid, params[])
{
if(IsPlayerInVehicle(playerid, specialcar))
{
SendClientMessage(playerid, -1, "You're in the special car!");
}
SetVehiclePos(specialcar, 1279.7849,-1342.3739,13.1002);
Ccp[playerid] = 1;
SetPlayerCheckpoint(playerid, 1260.7189,-1301.7548,12.8519, 4.0);
return 1;
}
Re: Commands Not Working IG -
Schneider - 06.12.2014
Are you sure you typed the command right?
/driverlicen instead of /driverlicense
Re: Commands Not Working IG - Diti1 - 06.12.2014
Yes i typed the right command bcs i copied from pawno and then wrote on game
Re: Commands Not Working IG -
Schneider - 06.12.2014
Alright, do your other commands work?
Re: Commands Not Working IG - Diti1 - 06.12.2014
yes other works
Re: Commands Not Working IG - Diti1 - 07.12.2014
bump
Re: Commands Not Working IG -
ATGOggy - 07.12.2014
Did you get any errors while compiling?
Re: Commands Not Working IG -
Schneider - 08.12.2014
I found the problem:
It looks like zcmd does not support upper-cases in the commands. Even if you use upper-case ingame, it won't work.
So change:
pawn Код:
COMMAND:Driverlicen(playerid, params[])
to:
pawn Код:
COMMAND:driverlicen(playerid, params[])
Re : Commands Not Working IG -
ManuelNeuer - 08.12.2014
Any errors ?
Re: Commands Not Working IG -
Beckett - 08.12.2014
Quote:
Originally Posted by Schneider
I found the problem:
It looks like zcmd does not support upper-cases in the commands. Even if you use upper-case ingame, it won't work.
So change:
pawn Код:
COMMAND:Driverlicen(playerid, params[])
to:
pawn Код:
COMMAND:driverlicen(playerid, params[])
|
This, also are you using strcmp commands anywhere in your script?