Need help
#1

First thing:

I got some trouble, I'm trying to move a barrier at the LSPD but it just moves up or down slightly

Код:
if (strcmp(cmdtext, "/bopen", true) == 0)
	{
		if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
 		{
			MoveObject(lspdbarrier, 1544.713013, -1630.845947, 13.129566, 1000);
			return 1;
		//lspdbarrier = CreateObject(968, 1544.713013, -1630.845947, 13.129566, 0.0000, 0.0000, 90.0000);
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
		}
		return 1;
	}

	if (strcmp(cmdtext, "/bclose", true) == 0)
	{
		if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
	 	{
			MoveObject(lspdbarrier, 1544.720581, -1630.904663, 13.257036, 1000);
			return 1;
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "You are not a cop!");
		}
		return 1;
	}
pawn Код:
lspdbarrier = CreateObject(968, 1544.720581, -1630.904663, 13.257036, 0.0000, 91.1002, 90.0000);//PD Close
//  lspdbarrier = CreateObject(968, 1544.713013, -1630.845947, 13.129566, 0.0000, 0.0000, 90.0000);//PD Open
These are my objects


My second thing is when I open the carspawns.cfg, the standard car spawn code looks like this
Код:
483|386.869873|2453.238281|16.500000|1.564520|-1|-1|255|0
When ever I add a line, like the above all in the correct order update my script with say 141 cars instead of 140 (If I added just one more spawn) the server starts but no-one can login due to crashes.
Reply
#2

bump
Reply
#3

1) Don't bump topics. Especially when they're not even a day old ffs.
2) S-E-A-R-C-H
Reply
#4

Quote:
Originally Posted by Swift_
1) Don't bump topics. Especially when they're not even a day old ffs.
2) S-E-A-R-C-H
I've tried searching what my problem is and

I-C-A-N-T-F-I-N-D-I-T
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)