.map reader (not loader)
#7

Quote:
Originally Posted by Finn
Посмотреть сообщение
Well, it doesn't separate objects and vehicles at all, because I made it only for objects, so you have to modify it a little bit to get it working.

Also, you have to create the vehicle before you can put the player in it.

I don't know if this works, but I am here to help fix it if it doesn't:
pawn Код:
while(fread(file, string, sizeof(string)))
{
    if(sscanf(string, "p<\">'vehicle id='s'posX='f'posY='f'posZ='f'rotX='f'rotY='f'rotZ='f'model='d", string, x, y, z, rx, ry, rz, model))
    {
        continue;
    }

    vehicleid = CreateVehicle(model, x, y, z, rz, 1, 1, 60);
    PutPlayerInVehicle(playerid, vehicleid, 0);
}
Currently it's fucked up, because it will create all the vehicles in the .map and put the same player in each one.
yes true, i must use random also. I first want to test without random but i have an error. And i can't find the fix.

Код:
C:\Users\Michael2\Downloads\GTA\Destruction Derby 0.3d\filterscripts\Test.pwn(177) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
line 177=
pawn Код:
while(fread(mapname,line,sizeof(line)))
//and i have these:

new line[256];

// + edited the stock so ..

stock SpawnPlayerInMap(playerid,mapname[])
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: 2 Guest(s)