SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 06/02/2011, 07:22 PM   #1
Ivan_Pantovic
Huge Clucker
 
Ivan_Pantovic's Avatar
 
Join Date: Apr 2010
Location: Belgrade, Serbia
Posts: 474
Reputation: 12
Default Loading string from a file and inserting it into other string

If this can be used to load string and to put it into integer:
Code:
if(strcmp(key,"Job",true) == 0 ) { val = ini_GetValue( Data ); pInfo[playerid][pJob] = strval( val ); }
As this can be used to load a float :
Code:
if(strcmp(key,"HP",true) == 0 ) { val = ini_GetValue( Data ); HP[playerid] = floatstr( val ); }
How can i make this work
Code:
if(strcmp(key,"VehiclePlate",true) == 0 ) { val = ini_GetValue( Data ); pVehiclePlate[playerid] = UNKNOWN( val ); }

Thanks
__________________
Scripting pro User Control Panels for MYSQL servers (I can also make ucp with file saving systems, but it will cost you more as it takes me a lot more time). Price info. NOTE: These prices are rounded, contact with details for exact price.

I also have a fully done great RP script (100% MYSQL, awesome UCP, used it over a year without any problems on my server LSL-RP.COM (not an edit of the script released as "los santos life"), no bugs, truly unique features. (about 40 pounds, contact me for more info)
Code:
Mega RolePlay+UCP - not supporting this script anymore. Download: http://ivanorezac.blogspot.com/2012/...-roleplay.html
Ivan_Pantovic is offline  
 

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a certain string in a file Jochemd Help Archive 8 01/10/2010 04:35 PM
Remove string from a file. Butilka Help Archive 2 25/07/2010 05:36 PM
How to Delete a string in txt file? zSuYaNw Help Archive 2 04/06/2010 12:14 AM
File - string search help GTA_Rules Help Archive 6 27/07/2009 07:57 PM
Loading a string from a file? kevin433 Help Archive 2 15/02/2009 01:00 PM


All times are GMT. The time now is 03:13 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.