Please help me
#1

pawn Код:
dcmd_durchsuchen(playerid,params[])
{
new ziel;
new Float:zx,Float:zy,Float:zz;
new waffen[13];
new ammo[13];
new string[128];
new string1[128];
new sname[128];
new name[128];
new save[128];
GetPlayerName(playerid, name, sizeof(name));
format(save, sizeof(save), "/Acc/%s.ini", name);
new drogen = dini_Int(save, "Drogen");
if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 5)
    {
    if(sscanf(params, "u",ziel))
        {
        SendClientMessage(playerid,COLOR_YELLOW,"Benutzung: /durchsuchen [ID]");
        return 1;
        }
    GetPlayerPos(playerid, zx, zy, zz);
    if(IsPlayerInRangeOfPoint(playerid, 10, zx, zy, zz))
        {
        GetPlayerName(ziel, sname, sizeof(sname));
        format(string1,sizeof(string1),"|___Inhalt von %sґs Taschen___|", sname);
        SendClientMessage(playerid, COLOR_WHITE, string1);
        format(string,sizeof(string),"Drogen: %i Pдckchen", drogen);
        SendClientMessage(playerid, COLOR_WHITE, string);
        for (new i = 1; i <= 12; i++)
            {
            GetPlayerWeaponData(ziel, 12, waffen[i],ammo[i]);
            if(waffen[i] != 0)
                {
                new waffenname[32];
                GetWeaponName(waffen[i],waffenname,sizeof(waffenname));
                format(string,sizeof(string),"Waffen: %s :%i", waffenname,ammo[i]);
                SendClientMessage(playerid, COLOR_WHITE, string);
                }
            }
        }
    }
return 1;
}

but when i do this commando, but no weapons are showed to me
Reply
#2

Use the [pawn] tag please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)