Loading string from a file and inserting it into other string - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Loading string from a file and inserting it into other string (
/showthread.php?tid=222122)
Loading string from a file and inserting it into other string -
Ivan_Pantovic - 06.02.2011
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