Problem with cars
#1

For some reason the script spawns the cars loads of times

I do not have a clue why but it does.

Reply
#2

what??
Reply
#3

i know i just added cars since none were on the script and then when i connect there is millions of them
Reply
#4

Show your code here!
Reply
#5

Edit : Removed link
Reply
#6

Try this: (REMOVED LINK )
Reply
#7

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?
Reply
#8

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)