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, 08:22 PM   #1
Ivan_Pantovic
Banned
 
Join Date: Apr 2010
Location: Belgrade, Serbia
Posts: 376
Reputation: 26
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
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 02:00 PM


All times are GMT. The time now is 06:39 PM.


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