CMD help
#1

Ok so i wanna get the teleports from one stunt gm to another and its easier for me to just copy paste them than remake them using strcmp


they are like this
pawn Code:
CMD:race(playerid, params[])
        {
        SetTimerEx("Loaded", 3000, 0, "d", playerid);
        new vehicleid = GetPlayerVehicleID(playerid);
        new State = GetPlayerState(playerid);
        if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
        {
        GameTextForPlayer(playerid,"~r~Bun ~b~Venit!",4000,6);
        return SetVehiclePos(vehicleid,-154.4948,-187.6738,1.9254);
        }
        SetPlayerPos(playerid,-154.4948,-187.6738,1.9254);
        GameTextForPlayer(playerid,"~r~Bun ~b~Venit!",4000,6);
        return 1;
        }

I got everything in order so the filterscript doesnt give errors (cause if i put it in my gamemode ,some commands just say unknown command ,it bugs my gm ) .


The weird thing is ,those cmd are NOT into the public onplayercommand text ,they are in NO public ,though in the public there is a
pawn Code:
new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);

I have no idea how to make them work without remaking them using the default strcmp

any idea pls ? the filterscript loads but the teleports just dont work ,they dont show errors ,but dont teleport me either
Reply


Messages In This Thread
CMD help - by rekatluos - 23.08.2011, 12:25
Re: CMD help - by Pinguinn - 23.08.2011, 12:39
Re: CMD help - by rekatluos - 23.08.2011, 12:50
Re: CMD help - by TheArcher - 23.08.2011, 13:07
Re: CMD help - by Davz*|*Criss - 23.08.2011, 13:12
Re: CMD help - by rekatluos - 23.08.2011, 13:47

Forum Jump:


Users browsing this thread: 1 Guest(s)