Problem with cars - 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: Problem with cars (
/showthread.php?tid=129793)
Problem with cars -
ReactionGameServers - 23.02.2010
For some reason the script spawns the cars loads of times
I do not have a clue why but it does.
Re: Problem with cars -
[cA]Unforseen - 23.02.2010
what??
Re: Problem with cars -
ReactionGameServers - 23.02.2010
i know i just added cars since none were on the script and then when i connect there is millions of them
Re: Problem with cars -
LuxurioN™ - 23.02.2010
Show your code here!
Re: Problem with cars -
ReactionGameServers - 23.02.2010
Edit : Removed link
Re: Problem with cars -
LuxurioN™ - 23.02.2010
Try this: (
REMOVED LINK )
Re: Problem with cars -
ReactionGameServers - 23.02.2010
Aha! it worked thanks so much <3
Please remove the pastebin link, i dont want people to steal my script
And what did you do to fix it?
Re: Problem with cars -
LuxurioN™ - 23.02.2010
Quote:
Originally Posted by Lard Cat
Aha! it worked thanks so much <3
Please remove the pastebin link, i dont want people to steal my script
And what did you do to fix it?
|
The pastebin automatically remove in an hour, and I already edited my post.
I just added the "
return 1;" in the end of "
OnGameModeInit" and I moved "}"
Look:
pawn Код:
public OnGameModeInit()
{
new sendcmd[128];
format(sendcmd, sizeof(sendcmd), "LardCat-RP V%s", SCRIPT_VERSION); SetGameModeText(sendcmd);
for(new i = 0; i <= sizeof(Peds)-1; i++)
{
AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
}
new carselect2 = 496;
CreateVehicle(carselect2,2568.0725,-1490.8597,23.7263,281.8643, -1, -1, -1);
....
return 1;
}