need help agen with Rand Teleports - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help agen with Rand Teleports (
/showthread.php?tid=148366)
need help agen with Rand Teleports -
rs2fun111 - 16.05.2010
Can someone say what is wrong ?
pawn Код:
new Float:DmZoneTeleport[15][3] = {
{-1722.0804,267.6440,7.1875}, //1
{-1612.3928,291.6682,7.1818}, //2
{-1588.6993,382.7148,7.1875}, //3
{-1527.9823,469.2489,7.1875}, //4
{-1428.1691,462.5963,7.1809}, //5
{-1408.9974,490.7121,18.2294}, //6
{-1450.9227,508.6488,18.2514} //7
{-1380.6859,498.1823,21.2500} //8
{-1319.7167,499.7708,18.2344} //9
{-1260.5956,511.1124,18.2363} //10
{-1431.6740,495.1156,3.0391} //11
{-1540.6066,477.9028,23.2656} //12
{-1479.4082,441.7422,30.0859} //13
{-1499.2008,448.4868,42.3125} //14
{-1336.3169,488.0786,11.1953} //15
};
pawn Код:
if(dialogid == 15000) //color dialog
{
if(response)
{
if(listitem == 0) // green
{
new rand = random(15);
SetPlayerPos(playerid,DmZoneTeleport[rand][0],DmZoneTeleport[rand][1],DmZoneTeleport[rand][2],DmZoneTeleport[rand][3]);
}
Error
Код:
C:\Users\Kalvi\Desktop\sa-mp\gamemodes\kfsr3.pwn(126) : error 001: expected token: "}", but found "{"
C:\Users\Kalvi\Desktop\sa-mp\gamemodes\kfsr3.pwn(134) : error 010: invalid function or declaration
C:\Users\Kalvi\Desktop\sa-mp\gamemodes\kfsr3.pwn(9386) : error 032: array index out of bounds (variable "DmZoneTeleport")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: need help agen with Rand Teleports -
-Rebel Son- - 16.05.2010
Код:
SetPlayerPos(playerid,DmZoneTeleport[rand][0],DmZoneTeleport[rand][1],DmZoneTeleport[rand][2]);
Cant have 0 1 2 3. only 0 1 2 .
Re: need help agen with Rand Teleports -
rs2fun111 - 16.05.2010
ok now is 2 errors more .
Код:
C:\Users\Kalvi\Desktop\sa-mp\gamemodes\kfsr3.pwn(126) : error 001: expected token: "}", but found "{"
C:\Users\Kalvi\Desktop\sa-mp\gamemodes\kfsr3.pwn(134) : error 010: invalid function or declaration
Re: need help agen with Rand Teleports -
rs2fun111 - 17.05.2010
still errors .
Re: need help agen with Rand Teleports -
rs2fun111 - 17.05.2010
Got Resolved Problem , My Stupid Eye
didnt add , to the end ,,,,,,,,
Re: need help agen with Rand Teleports -
Nee - 17.05.2010
Ok plase topic closed