Raised This Month: $77 Target: $400
 19% 

Read KeyValues File


Post New Thread Reply   
 
Thread Tools Display Modes
Cruze
Senior Member
Join Date: May 2017
Old 07-17-2019 , 23:50   Re: Read KeyValues File
Reply With Quote #11

Wouldn't loop be like this?
PHP Code:
for(int i 04i++) 
__________________
Taking paid private requests! Add me on steam!

Discord: Cruze#4947 | AlliedModders Releases | Github | Steam | PayPal

Last edited by Cruze; Yesterday at 00:07. Reason: Forgot initialisation
Cruze is offline
GetRektByNoob
Member
Join Date: Nov 2018
Old 07-18-2019 , 10:22   Re: Read KeyValues File
Reply With Quote #12

Quote:
Originally Posted by I am inevitable View Post
PHP Code:
void RefreshClientWeapons(int iClient)
{
    for (
int i 44i++)
    {
        
int iWeapon_Entity_Index GetPlayerWeaponSlot(iClienti);
        
        if (
iWeapon_Entity_Index != -1)
        {
            
RemovePlayerItem(iClientiWeapon_Entity_Index);
            
            
AcceptEntityInput(iWeapon_Entity_Index"Kill");
            
            
char sWeapon_Classname[32];
            
            
GetEntityClassname(iWeapon_Entity_IndexsWeapon_Classnamesizeof(sWeapon_Classname));
            
            
GivePlayerItem(iClientsWeapon_Classname);
        }
    }

sorry i posted this on the wrong thread i tried removeing the reply without success till now, sorry again...
GetRektByNoob is offline
I am inevitable
Member
Join Date: May 2019
Location: 0xA6DA34
Old 07-19-2019 , 16:11   Re: Read KeyValues File
Reply With Quote #13

Quote:
Originally Posted by Cruze View Post
Wouldn't loop be like this?
PHP Code:
for(int 04i++) 
yup
__________________
I do make plugins upon requests, so hit me up on discord if you're interested: cucklord67xD#3823
I am inevitable is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:33.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode