SA-MP Forums Archive
Vehicle Command Problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle Command Problem (/showthread.php?tid=182186)



Vehicle Command Problem - amJason - 09.10.2010

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


Re: Vehicle Command Problem - Rudyy - 09.10.2010

Show me the top of your Public OnPlayerCommandText ...


Re: Vehicle Command Problem - amJason - 09.10.2010

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 .


Re: Vehicle Command Problem - WillyP - 09.10.2010

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

:/


Re: Vehicle Command Problem - amJason - 09.10.2010

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 .


Re: Vehicle Command Problem - WillyP - 09.10.2010

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



Re: Vehicle Command Problem - amJason - 09.10.2010

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


Re: Vehicle Command Problem - WillyP - 09.10.2010

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