what's wrong ?
#1

hello i have this commands in script :
pawn Код:
CMD:shopsword(playerid, params[])
{
    if (PlayerInfo[playerid][pShopTech] < 1 && PlayerInfo[playerid][pAdmin] < 1338)
    {
        SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command.");
        return 1;
    }

    new string[128], giveplayerid, slot, invoice[64];
    if(sscanf(params, "uds[64]", giveplayerid, slot, invoice)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /shopsword [playerid] [slot(0-4)] [invoice #]");

    PlayerToyInfo[giveplayerid][slot][ptModelID] = 3028;
    PlayerToyInfo[giveplayerid][slot][ptBone] = 1;
    PlayerToyInfo[giveplayerid][slot][ptPosX] = 20.0;
    PlayerToyInfo[giveplayerid][slot][ptPosY] = -12.0;
    PlayerToyInfo[giveplayerid][slot][ptPosZ] = 25.0;
    PlayerToyInfo[giveplayerid][slot][ptRotX] = 0.0;
    PlayerToyInfo[giveplayerid][slot][ptRotY] = 50.0;
    PlayerToyInfo[giveplayerid][slot][ptRotZ] = 0.0;
    format(string, sizeof(string), "You have been given a sword toy in slot %d, use /toys to manage it", slot);
    SendClientMessageEx(giveplayerid, COLOR_LIGHTGREEN, string);
    format(string, sizeof(string), "You have given %s a sword toy in slot %d", GetPlayerNameEx(giveplayerid), slot);
    SendClientMessageEx(playerid, COLOR_LIGHTGREEN, string);
    format(string, sizeof(string), "[SHOPM4] %s has given %s a sword toy - Invoice %s", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), invoice);
    Log("logs/shoplog.log", string);
    return 1;
}
in game its :

Код:
why its -12000 and 2000 and 25000 ?!?
Reply


Messages In This Thread
what's wrong ? - by Joe_Goro - 18.11.2013, 20:17
Re: what's wrong ? - by Jefff - 18.11.2013, 20:29
Re: what's wrong ? - by Joe_Goro - 18.11.2013, 20:56
AW: what's wrong ? - by Littl3j0hNy - 18.11.2013, 21:18
Re: what's wrong ? - by Joe_Goro - 18.11.2013, 21:20
Re: what's wrong ? - by Joe_Goro - 19.11.2013, 10:53
AW: what's wrong ? - by Littl3j0hNy - 19.11.2013, 13:16
Re: what's wrong ? - by Joe_Goro - 19.11.2013, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)