Quote:
Originally Posted by aRoach
Anywhere... but not in another Callback... :
pawn Код:
LoadPlates() { new File:H = fopen("CarPlates.ini",io_read); new str[128],car,plate[10]; while(fread(H, str)) { strmid(plate,str,0,strfind(str,"=",true)); car = strval(plate); strmid(plate,str,strfind(str,"=",true),strlen(str)-1); SetVehicleNumberPlate(car,plate); } }
|
Not only this. You need to create the file and save it to it.