/work command not doing anything
#1

Hai guy's
my /work command dosent return SERVER:Unknown command. but it dosent do anything o.O

lil help?

pawn Код:
#include "a_samp"
#include "TM"                                     //truckingmissions.inc
#include "zcmd"
#define COLOR_WHITE 0xFFFFFFFF
public OnPlayerFinishMission(playerid)
{
    return 1;
}


public OnGameModeInit()
{
    AddPlayerClass(0,0,0,3,0,0,0,0,0,0,0);
    return 1;
}


/* Commands */
COMMAND:work(playerid,params[])
{
    if(IsPlayerInAnyVehicle(playerid)) {
        if(IsPlayerInVehicle(playerid,515)) {     //roadtrain
            if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) {
//xoomer trailer
                if(GetVehicleTrailer(GetPlayerVehicleID(playerid) == 584)) {
                    CreatePlayerMission(playerid,true,10231,0,0,3,0,9,3);
                }
//ore trailer
                else if(GetVehicleTrailer(GetPlayerVehicleID(playerid) == 450)) {
                    CreatePlayerMission(playerid,true,10231,0,0,3,0,9,3);
                }
            }
            else {
                SendClientMessage(playerid,COLOR_WHITE,"You need to attach a trailer");
            }
        }
//burrito
        else if(IsPlayerInVehicle(playerid,482)) {
            CreatePlayerMission(playerid,true,10231,0,0,3,0,9,3);
        }
    }
    else {
        SendClientMessage(playerid,COLOR_WHITE,"Your not in a vehicle");
    }
    return 1;
}
Reply
#2

Its
pawn Код:
#include <a_samp>
#include <TM>                                 //truckingmissions.inc
#include <zcmd>
At the top. and you should download sscanf2 by ******

And put this at the top too ( Below zcmd though )

pawn Код:
#include <sscanf2>
ONLY after you have download sscanf 2 though.

EDIT:
Also,
It is
pawn Код:
CMD:Work
Not
pawn Код:
COMMAND:Work
Reply
#3

Quote:
Originally Posted by JAMMIEISFTW
Посмотреть сообщение
Its
pawn Код:
#include <a_samp>
#include <TM>                                 //truckingmissions.inc
#include <zcmd>
At the top. and you should download sscanf2 by ******

And put this at the top too ( Below zcmd though )

pawn Код:
#include <sscanf2>
ONLY after you have download sscanf 2 though.

EDIT:
Also,
It is
pawn Код:
CMD:Work
Not
pawn Код:
COMMAND:Work
come again when you know what your on about o.OOOOOOOOOOOOOOOOOOOOOOOOOO
Reply
#4

Quote:
Originally Posted by JAMMIEISFTW
Посмотреть сообщение
EDIT:
Also,
It is
pawn Код:
CMD:Work
Not
pawn Код:
COMMAND:Work
Urm smartass? You can use CMD:, COMMNAD or command.
Reply
#5

bump
Reply
#6

afaik u must use GetVehicleModel
that function is only to get the server vehicle id, not the vehicle model id
link: https://sampwiki.blast.hk/wiki/GetVehicleModel
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)