"DynamicCP's Size" problem!
#1

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..


Reply
#2

Use DisablePlayerCheckpoint(playerid); before creating a new one.
Reply
#3

this is DynamicCP, so why to use DisablePlayerCheckpoint ?!!
Reply
#4

Put this in OnGameModeInit/OnFilterScriptInit

pawn Code:
CreateDynamicCP(2123.4165, 775.0004, 11.4453, 1.0, 0, 0, -1, 100.0);
Reply
#5

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??
Reply
#6

U dont need disable in streamer ! I dont know what script u r using, if GM put in OnGameModeInit
Reply
#7

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@@
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)