01.02.2013, 18:10
Ever since the 0.3x update for my server, CreateDynamicRaceCP hasn't been showing up for me.
Here is the code:
In a test run, I get these messages:
[14:30:21] createCP(0, 131.800003, -67.800003, 1.578125, -1820.863159, -586.642333, 16.188741, 8.000000, 4, -1, 0, 300.000000);
[14:30:21] Valid
But I see no checkpoint. I have ensured I was in the correct VW and near the coords 131.800003, -67.800003, 1.578125. I looked at the server log and no error messages show up. Any idea what's going on?
Here is the code:
Код:
dcmd_cptest(playerid, params[]) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); new cp = CreateDynamicRaceCP(type, x, y, z, nextx, nexty, nextz, size, RACE_VW, -1, playerid, 300.0); new str[250]; format(str, sizeof(str), "createCP(%i, %f, %f, %f, %f, %f, %f, %f, %i, %i, %i, %f);", type, x, y, z, nextx, nexty, nextz, size, RACE_VW, -1, playerid, 300.0); SendClientMessage(playerid, 0xCC00CCFF, str); if (IsValidDynamicRaceCP(cp)) { SendClientMessage(playerid, 0xCC00CCFF, "Valid"); } else { SendClientMessage(playerid, 0xCC00CCFF, "Invalid"); } }
[14:30:21] createCP(0, 131.800003, -67.800003, 1.578125, -1820.863159, -586.642333, 16.188741, 8.000000, 4, -1, 0, 300.000000);
[14:30:21] Valid
But I see no checkpoint. I have ensured I was in the correct VW and near the coords 131.800003, -67.800003, 1.578125. I looked at the server log and no error messages show up. Any idea what's going on?