[Help] How to transform ZCMD into strcmp
#1

Ok this is the problem... i've tried anything but i can't figure out how to change some commands from zcmd into strcmp... my whole gamemode is in strcmp and it would be a waste of time to change everything into zcmd... For example i want to change this command but not stop using its sscanf becouse i don't know how to write this command in strcmp:

pawn Код:
CMD:xgoto(playerid,params[])
    {
        if(PlayerInfo[playerid][pAdmin] >= 1338 && IsPlayerAdmin(playerid))
        {
            new Float:x, Float:y, Float:z;
            if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Use: \"/xgoto <X Float> <Y Float> <Z Float>\"");
            else
            {
                if(IsPlayerInAnyVehicle(playerid))
                {
                    SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
                }
                else
                {
                    SetPlayerPos(playerid, x, y, z);
                }
                format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z);
                SendClientMessage(playerid, 0xBBBBBBAA, string);
            }
        }
        return 1;
    }
can anyone give me a pattern or something how to change it or a convertor or i don't know ?
Reply


Messages In This Thread
[Help] How to transform ZCMD into strcmp - by Tika Spic - 11.02.2012, 17:36
Re: [Help] How to transform ZCMD into strcmp - by Tika Spic - 11.02.2012, 19:12
Re: [Help] How to transform ZCMD into strcmp - by Johnson_boy - 11.02.2012, 19:43
Re: [Help] How to transform ZCMD into strcmp - by AndreT - 11.02.2012, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)