.map reader (not loader)
#3

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Open the .map file and find a way to retrieve the coordinates you need. Sscanf should help you with that.
Yes i see, it's quite difficult ... I have this already:

pawn Код:
stock SpawnPlayerInMap(playerid)
{
    new mapName[32],path[64], line[256];
    format(path, sizeof(path), "/maps/%s.map", mapname);
   
    if(!fexist(path)){
    format(string, sizeof(string), "Unable to locate map %s!", mapname);
    print(string);
   
    while(fread(map,line))
    {

    }
//<vehicle id="vehicle (Rancher) (1)" paintjob="0" model="489" plate="NRHLSGL" interior="0" dimension="0" name="" posX="-85.281013" posY="1339.174316" posZ="13.297609" rotX="" rotY="" rotZ="" />
}
I dunno how to use sscanf then ...
Reply


Messages In This Thread
.map reader (not loader) - by Michael@Belgium - 11.12.2011, 12:17
Re: .map reader (not loader) - by Hiddos - 11.12.2011, 12:20
Re: .map reader (not loader) - by Michael@Belgium - 11.12.2011, 12:34
Re: .map reader (not loader) - by Finn - 11.12.2011, 12:39
Re: .map reader (not loader) - by Michael@Belgium - 11.12.2011, 12:49
Re: .map reader (not loader) - by Finn - 11.12.2011, 13:25
Re: .map reader (not loader) - by Michael@Belgium - 11.12.2011, 13:53
Re: .map reader (not loader) - by §с†¶e®РµРe - 11.12.2011, 14:03
Re: .map reader (not loader) - by array13 - 11.12.2011, 14:27
Re: .map reader (not loader) - by Finn - 11.12.2011, 14:36

Forum Jump:


Users browsing this thread: 1 Guest(s)