Unknown Error
#1

Hello Guys Please Help Me I Have Error That When I Type /sit Command it says Unknown Error.Always Says Unknown Error.Here is my code
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/sit", true) == 0)
    {
        ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
        return 1;
    }
    return 0;
    }
Reply
#2

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/sit"true) == 0)
    {
        
ApplyAnimation(playerid,"PED","SEAT_idle",4,0,0,01,0,1);
        return 
1;
    }
    return 
0;

replace by that
Reply
#3

Didn't Work
Reply
#4

Quote:
Originally Posted by CarRamper
Посмотреть сообщение
Hello Guys Please Help Me I Have Error That When I Type /sit Command it says Unknown Error.Always Says Unknown Error.Here is my code
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/sit", true) == 0)
    {
        ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
        return 1;
    }
    return 0;
}
This command is working. This is your only command?
Reply
#5

This Command Is Not Working For Me
Reply
#6

it is the only command on your script ?!
Reply
#7

yes this the only command in my script under public OnPlayerCommandText please help me
Reply
#8

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 

    print(
"Called");
    if(
strcmp(cmdtext"/sit"true) == 0
    { 
        
ApplyAnimation(playerid,"PED","SEAT_idle",4,0,0,01,0,1); 
        print(
"Animation Applied");
        return 
1
    } 
    return 
0

Can you try this code and tell us does it print in the console?
Reply
#9

Don't use another command processor and OnPlayerCommandText at the same time. Just stick to one.
Reply
#10

Thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)