SA-MP Forums Archive
/findcar not working - 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: /findcar not working (/showthread.php?tid=224005)



/findcar not working - darkknight123 - 10.02.2011

I'm useing a edited version of the German life car dealership thingy and im trying to make a /trackcar
this is what i have so far
Код:
	else if (strcmp("/findcar", cmd, true, 10) == 0)
	{
	SendClientMessage(playerid, COLOR_YELLOW,"Lost Cars: Looks like you lost your car, folow the check point on your GPS");
    SetPlayerCheckpoint(playerid,Carlist[playerid][Carid],Carlist[playerid][X],Carlist[playerid][Y],Carlist[playerid][Z]);, 5.0);
    return 1;
    }
but when i test it IG the check point gose all crazy and its in a random place on the map what did i do wrong? :/


Re: /findcar not working - Antonio [G-RP] - 10.02.2011

pawn Код:
SetPlayerCheckpoint(playerid,  Carlist[playerid][X], Carlist[playerid][Y], Carlist[playerid][Z], 5.0);
SetPlayerCheckpoint(playerid, Float, Float:y, Float:z, Floatize);


Re: /findcar not working - darkknight123 - 10.02.2011

Thanks man it works!


Re: /findcar not working - darkknight123 - 10.02.2011

How about a /respawn car command for players to respawn sold cars and what not?


Respuesta: /findcar not working - MMiz - 11.02.2011

Don't Double Post, It's not allowed, Read the Rules.....