CreateDynamicCP Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamicCP Problem (
/showthread.php?tid=494303)
CreateDynamicCP Problem -
Rokzlive - 12.02.2014
This may just be an error in my formatting but i cant get this devilish thing to show up. Im a bit rusty so it may be a simple issue.
pawn Код:
pData[playerid][CheckpointID] = CreateDynamicCP(PointData[loadid][X],PointData[loadid][Y],PointData[loadid][Z], 5, -1, -1, playerid,2000);
The checkpoint wont show no matter what ive tried. Ive tried changing the stream distance and even removing it and no change.
Re: CreateDynamicCP Problem -
CuervO - 12.02.2014
Checkpoints will not show on custom objects above the normal height, instead they will show in the normal GTA SA height.
Re: CreateDynamicCP Problem -
Rokzlive - 12.02.2014
The problem im having is that its not even showing on the minimap. I dont have any custom objects on the server so thats not a worry. Its just not spawning.
Heres the whole function
pawn Код:
new missionid;
for(new i=0; i <= 500; i++)
{
missionid = random(sizeof(MissionData));
if(MissionData[missionid][Type] == MissionVehData[modelid - 400][Type]) i = 500;
}
pData[playerid][MissionID] = missionid;
new cargoid = MissionData[missionid][Cargo];
new loadid = MissionData[missionid][Load];
new offloadid = MissionData[missionid][Offload];
pData[playerid][CheckpointID] = CreateDynamicCP(PointData[loadid][X],PointData[loadid][Y],PointData[loadid][Z], 5.0, -1, -1, playerid,2000);
//pData[playerid][CheckpointID] = SetPlayerCheckpoint(playerid, PointData[loadid][X],PointData[loadid][Y],PointData[loadid][Z],5.0);
pData[playerid][Checkpoint] = 1;
new String[150];
format(String,sizeof(String),"Delivering %s from %s to %s.",LoadData[cargoid][Name],PointData[loadid][Name],PointData[offloadid][Name]);
SendClientMessage(playerid,COLOR_GREEN,String);
Re: CreateDynamicCP Problem -
CuervO - 13.02.2014
Maybe it's not showing in the map because you have commented that part? :P
Is the text being sent?