SA-MP Forums Archive
What is the difference between? - 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: What is the difference between? (/showthread.php?tid=590267)



What is the difference between? - Backup7723 - 27.09.2015

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


Re: What is the difference between? - Backup7723 - 02.10.2015

help me ...


Re: What is the difference between? - rappy93 - 02.10.2015

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

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint


Re: What is the difference between? - GTLS - 02.10.2015

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


Re: What is the difference between? - ATomas - 02.10.2015

";" 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 ","
};