"DynamicCP's Size" 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: "DynamicCP's Size" problem! (
/showthread.php?tid=464129)
"DynamicCP's Size" problem! -
AnonScripter - 15.09.2013
pawn Code:
public OnPlayerSpawn(playerid)
{
CreateDynamicCP(2123.4165, 775.0004, 11.4453, 1.0, 0, 0, -1, 100.0);
return 1;
}
The Size of the CP is 1.0 and it shows in game 4.0, what's the wrong in the parameters ??
any solution please..
Re: "DynamicCP's Size" problem! -
Dragonsaurus - 15.09.2013
Use DisablePlayerCheckpoint(playerid); before creating a new one.
Re: "DynamicCP's Size" problem! -
AnonScripter - 15.09.2013
this is DynamicCP, so why to use DisablePlayerCheckpoint ?!!
Re: "DynamicCP's Size" problem! -
Jefff - 15.09.2013
Put this in OnGameModeInit/OnFilterScriptInit
pawn Code:
CreateDynamicCP(2123.4165, 775.0004, 11.4453, 1.0, 0, 0, -1, 100.0);
Re: "DynamicCP's Size" problem! -
AnonScripter - 15.09.2013
i really can't understand, Dragonsaurus told me to put DisablePlayerCheckpoint(playerid); before creating a new CP... and u tell me to put it in OnGameModeInit/OnFilterScriptInit.
what to do now ?? and are u wanting me to put it in OnGameModeInit/OnFilterScriptInit at the same time??
Re: "DynamicCP's Size" problem! -
Jefff - 15.09.2013
U dont need disable in streamer ! I dont know what script u r using, if GM put in OnGameModeInit
Re: "DynamicCP's Size" problem! -
AnonScripter - 16.09.2013
yes i put the dynamicCP's in "OnGameModeInIt", btw i found the problem...
the problem begins when i put this DynamicCP in my script
pawn Code:
CreateDynamicCP(2117.5085,896.7781,11.1797,2.5,0,0,-1,100.0);
i don't know why when i put this only, it changes all DynamicCP's size that begins with 3 digits before the "DOT" in FLOAT:Y, it changes it to 2.5
Float:y in this CP causes a problem with all DynamicCPs that begins with 3 digits in float:y because this dynamicCP's float:y begins with 3 digits, so why this ?!! 
...i tried to change "896" from Float:y to "1000" and everything solved, but i want it "896" to be on right place.
WTF is this problem?? x@@