Commands Not Working IG
#1

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(playeridparams[])
{
            if(
IsPlayerInVehicle(playeridspecialcar))
        {
            
SendClientMessage(playerid, -1"You're in the special car!");
        }
            
SetVehiclePos(specialcar1279.7849,-1342.3739,13.1002);
            
Ccp[playerid] = 1;
            
SetPlayerCheckpoint(playerid1260.7189,-1301.7548,12.85194.0);
            return 
1;

Reply
#2

Are you sure you typed the command right?

/driverlicen instead of /driverlicense
Reply
#3

Yes i typed the right command bcs i copied from pawno and then wrote on game
Reply
#4

Alright, do your other commands work?
Reply
#5

yes other works
Reply
#6

bump
Reply
#7

Did you get any errors while compiling?
Reply
#8

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[])
Reply
#9

Any errors ?
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)