No Eerror Just BUG [+REP]
#1

PHP код:
CMD:client(playeridparams[])
{
    if(
pInfo[playerid][pAdminLevel] < 1) return SendClientMessage(playeridCOLOR_GREY"You are not allowed to do this");
        new 
AdminDutyMsg[128], targetid;
        
format(AdminDutyMsgsizeof(AdminDutyMsg), ""COL_WHITE"["COL_CADMIN"ADMIN"COL_WHITE"]"COL_CGREY" %s > client > %s" ,PlayerName(playerid), PlayerName(targetid));
        
SendMessageToAllAduty(-1,AdminDutyMsg);
        new 
ammoweaponidweapon[24], string[128],string1[128],string2[128], id,count;
        if( 
sscanf(params"u"id)) return SendClientMessage(playeridCOLOR_GREY"USAGE: /cw [ID]");
        for (new 
013c++)
        {
                
GetPlayerWeaponData(idcweaponidammo);
                if (
weaponid == && ammo == 0) continue;
                
count++;
        }
        if(
count==0) return SendClientMessage(playeridCOLOR_GREY"This player has no weapons!");
        
format(stringsizeof(string), "Players:%s(%d)\nDatabase ID:%d\nWeapons:",PlayerName(targetid),targetid,pInfo[playerid][ID]);
        for (new 
013c++)
        {
                
GetPlayerWeaponData(idcweaponidammo);
                if (
weaponid == && ammo == 0) continue;
                
GetWeaponName(weaponidweapon24);
                
format(string1sizeof(string1), "%s %s(%d)\n"stringweaponammo);
        }
        
format(string2sizeof(string2), "%s \n VirtualWorld:%d    Interior:%d",string1,GetPlayerVirtualWorld(targetid),GetPlayerInterior(targetid));
        return 
ShowPlayerDialog(playerid,DIALOG_ADMINS,DIALOG_STYLE_MSGBOX,"Viewing Client Info",string2,"Close","");

Hello this is my script
I dont have erors just an little bug
He show mee just 1 Weapon and if i have 2 or 3 or 4
He show mee just the first weapon
I want all weapons
Thank you +REP FOR YOU
Reply


Messages In This Thread
No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 20:09
Re : No Eerror Just BUG [+REP] - by StreetRP - 30.04.2015, 20:27
Re: No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 20:53
Re: No Eerror Just BUG [+REP] - by trablon - 30.04.2015, 21:19
Re: No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 21:52
Re: No Eerror Just BUG [+REP] - by icra - 30.04.2015, 22:26
Re: No Eerror Just BUG [+REP] - by arlindi - 30.04.2015, 22:29
Re: No Eerror Just BUG [+REP] - by icra - 30.04.2015, 22:58
Re: No Eerror Just BUG [+REP] - by arlindi - 01.05.2015, 15:32
Re: No Eerror Just BUG [+REP] - by Mencent - 01.05.2015, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)