22.12.2014, 20:59
i didn't use dini at all !
but when you use dini_Int(File, "CarID") , this mean you have opened a file wich called "File" and get an integer from "CarID" value !
if you don't open a file, so you can't get integers and strings and...
if you pay attention:
you can't see "Working2" in consol.
so in this line:
you have problem.
and your problem is that you didn't open any file to get information from it
i suggest you use MySQL or Y_ini
MYSQL is very good
Y_INI is better than Dini !
Good luck
but when you use dini_Int(File, "CarID") , this mean you have opened a file wich called "File" and get an integer from "CarID" value !
if you don't open a file, so you can't get integers and strings and...
if you pay attention:
pawn Код:
print("working");
if(GetPlayerVehicleID(playerid) == dini_Int(File, "CarID"))
{
print("Working2"); // <---------------
.............
so in this line:
pawn Код:
if(GetPlayerVehicleID(playerid) == dini_Int(File, "CarID"))
and your problem is that you didn't open any file to get information from it
i suggest you use MySQL or Y_ini
MYSQL is very good
Y_INI is better than Dini !
Good luck