Vehicle Command Problem
#1

Hello I have a problem ,when i go in the vehicles and command make .

Come || Server : Unknown Command ||, all command not funtion in a vehicles

How i can fix it ?


Help pls


amJason
Reply
#2

Show me the top of your Public OnPlayerCommandText ...
Reply
#3

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    
M_OnPlayerCommandText(playerid,cmdtext);
    new 
string[256];
    new 
playermoney;
    new 
sendername[MAX_PLAYER_NAME];
    new 
giveplayer[MAX_PLAYER_NAME];
    new 
playername[MAX_PLAYER_NAME];
    new 
dancestyle;
    new 
cmd[256];
    new 
tmp[256];
    new 
giveplayeridmoneysidx;
    
cmd strtok(cmdtextidx);
    
GetPlayerName(playerid,sendername,sizeof(sendername)); 
Anyone can help pls .
Reply
#4

Quote:
Originally Posted by amJason
Посмотреть сообщение
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    
M_OnPlayerCommandText(playerid,cmdtext);
    new 
string[256];
    new 
playermoney;
    new 
sendername[MAX_PLAYER_NAME];
    new 
giveplayer[MAX_PLAYER_NAME];
    new 
playername[MAX_PLAYER_NAME];
    new 
dancestyle;
    new 
cmd[256];
    new 
tmp[256];
    new 
giveplayeridmoneysidx;
    
cmd strtok(cmdtextidx);
    
GetPlayerName(playerid,sendername,sizeof(sendername)); 
Anyone can help pls .
what is wrong with people using PHP coding?

zomg, 1 more letter really doesnt make a difference for PAWN

i didnt realise it was so hard to type 4 letters

:/
Reply
#5

sry . guys


[pwn] not funtion is [pawn] sry .


You can help me ?


Why i dont can Command in a vehicle use ? . Everytime come Server:unknown Command .
Reply
#6

heres mine:

pawn Код:
dcmd_car(playerid,params[])
{
    if(PInfo[playerid][Level] >= 1)
    {
        new car, veh, Float:x, Float:y, Float:z, Float:a; car=strval(params);
        if(car < 400 || car > 611) return  SendClientMessage(playerid, COLOR_RED, "ERROR: Invalid Vehicle Model");
        GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
        veh=CreateVehicle(car, x,y,z,a,-1,-1,-1);
        PutPlayerInVehicle(playerid, veh, 0);
    }
    return 1;
}
Reply
#7

when i go to foot all the commands work, but when i sit or Drive with the car the commands doesnt work, the server write: Server unknow Command




amJason
Reply
#8

Quote:
Originally Posted by amJason
Посмотреть сообщение
when i go to foot all the commands work, but when i sit or Drive with the car the commands doesnt work, the server write: Server unknow Command




amJason
doesnt do that for me, must be your code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)