Raised This Month: $ Target: $400
 0% 

nVault help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mandiii
Junior Member
Join Date: Jun 2010
Old 06-13-2010 , 15:06   Re: nVault help.
Reply With Quote #1

Quote:
Originally Posted by grimvh2 View Post
PHP Code:
// to save 
formatex(datasizeof(data)-1,"%i %i"killsdeaths)

// when loading
new kills[10],deaths[10]
new 
ikillsideaths
parse
(datakillssizeof(kills)-1deathssizeof(deaths)-1)

ikills str_to_num(kills)
ideaths str_to_num(deaths
So if i just put it like this then it will work?
PHP Code:
public cmdGetDeathsNKills(id)
{
    new 
kills[10],deaths[10]
    new 
ikillsideaths
    parse
(datakillssizeof(kills)-1deathssizeof(deaths)-1)

    
ikills str_to_num(kills)
    
ideaths str_to_num(deaths)
    
    
client_print(idprint_chat"You have %d kills and %d deaths"ikillsideaths)

Mandiii is offline
Reply



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 14:52.


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