29.04.2016, 18:53
Alright. I'm trying to set up a checkpoint right in front of the spawn point I have set so I can start scripting a robbery system, but of course. I am having issues with the checkpoint. I'll show every bit that I used to use the checkpoint.
That is all I have for the checkpoint right now. I just wanted to in-game and see if that message would appear when I stepped into the checkpoint, and that is when I found out my checkpoint was not appearing in-game.
In the console. It says "CreateDynamicCP: Expecting 8 Parameters, but found 9."
Код:
//New Defines//
new TestRobberyCP;
public OnPlayerSpawn(playerid)
{
TestRobberyCP = CreateDynamicCP(2025.4181, 1343.2915, 10.8203, 3, -1, -1, -1, 100.0);
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == TestRobberyCP)
{
SendMessage(playerid, COLOR_ORANGE, "Use /robshop to being the robbery.");
}
return 1;
}
In the console. It says "CreateDynamicCP: Expecting 8 Parameters, but found 9."

