What is the difference between?
#1

new Float:checkCoords[MAX_POINTS][4] = {
{354.1745,158.6413,390.2875,188.8046} //CityHallMain;
}
//=====================
new Float:checkpoints[MAX_POINTS][4] = {
{362.0905,173.7759,1008.3828,3.0};//CityHallMain
}

According to what we are adding?

or How do add a CheckPoint ??
Reply
#2

help me ...
Reply
#3

This wiki page has an example as well as information about the function.

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
Reply
#4

Quote:
Originally Posted by rappy93
Посмотреть сообщение
This wiki page has an example as well as information about the function.

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
nope, maybe he needs that code could read location that if he is in that cp or not... else you can always use this tut:
https://sampforum.blast.hk/showthread.php?tid=306615 hope i helped
Reply
#5

";" must be in the end of variable

like this:
Код:
new Float:checkCoords[MAX_POINTS][4] = {
{354.1745,158.6413,390.2875,188.8046} //CityHallMain
};
you can add checkpoint thus:
Код:
new Float:checkCoords[MAX_POINTS][4] = {//Remember to adjust MAX_POINTS or leave blank dimension at all
{354.1745,158.6413,390.2875,188.8046},
{354.1745,158.6413,390.2875,188.8046},
{354.1745,158.6413,390.2875,188.8046}//on the last line must not be ","
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)