25.03.2017, 19:53
PHP код:
new ran = random(sizeof(RandomCheckpoint)); //No Errors, just a warning, meaning you already have the word "rand" already change it, or re-use the old one.
RandomCheckpoints[playerid] = CreateDynamicRaceCP(playerid, RandomCheckpoint[rand][0], RandomCheckpoint[rand][1], RandomCheckpoint[rand][2], 0.0, 0.0, 0.0, 5.0, -1, -1, -1, 50.0);
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
if(checkpointid == RandomCheckpoints[playerid])//Missing the [playerid]
{
Код:
CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_RACE_CP_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1)