Help here a bit? - 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: Help here a bit? (
/showthread.php?tid=348148)
Help here a bit? -
N0FeaR - 04.06.2012
Error i get
Код:
C:\Users\Hellman\Desktop\Test\gamemodes\Test.pwn(2830) : error 010: invalid function or declaration
C:\Users\Hellman\Desktop\Test\gamemodes\Test.pwn(2832) : error 010: invalid function or declaration
C:\Users\Hellman\Desktop\Test\gamemodes\Test.pwn(2837) : error 054: unmatched closing brace ("}")
C:\Users\Hellman\Desktop\Test\gamemodes\Test.pwn(2838) : error 010: invalid function or declaration
C:\Users\Hellman\Desktop\Test\gamemodes\Test.pwn(2843) : error 054: unmatched closing brace ("}")
C:\Users\Hellman\Desktop\Test\gamemodes\Test.pwn(2849) : error 010: invalid function or declaration
C:\Users\Hellman\Desktop\Test\gamemodes\Test.pwn(2860) : error 010: invalid function or declaration
pawn Код:
}
for(new c = 0; c < sizeof(Cell); c++)
{
if(Cell[c][Owned] == 0)
{
Create3DTextLabel("Cell",0x38FF06FF,Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]+0.75, 25.0, 0);
Cell[c][PickupID]=CreateDynamicPickup(1273, 1, Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]);
//pickups++;
}
if(Cell[c][Owned] == 1)
{
Create3DTextLabel("Cell",0x38FF06FF,Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]+0.75, 25.0, 0);
Cell[c][hPickupID]=CreateDynamicPickup(1239, 1, Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]);
//pickups++;
}
}
Re: Help here a bit? -
Firo - 04.06.2012
Give lines please....
Re: Help here a bit? - Jarnu - 04.06.2012
pawn Код:
}
for(new c = 0; c < sizeof(Cell); c++)
{
if(Cell[c][Owned] == 0)
{
Create3DTextLabel("Cell",0x38FF06FF,Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]+0.75, 25.0, 0);
Cell[c][PickupID]=CreateDynamicPickup(1273, 1, Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]);
//pickups++;
}
if(Cell[c][Owned] == 1)
{
Create3DTextLabel("Cell",0x38FF06FF,Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]+0.75, 25.0, 0);
Cell[c][hPickupID]=CreateDynamicPickup(1239, 1, Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]);
//pickups++;
}
}
}
You Forgot to Close it. Check if it worked.
Re: Help here a bit? -
Firo - 04.06.2012
pawn Код:
{
for(new c = 0; c < sizeof(Cell); c++)
{
if(Cell[c][Owned] == 0)
{
Create3DTextLabel("Cell",0x38FF06FF,Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]+0.75, 25.0, 0);
Cell[c][PickupID]=CreateDynamicPickup(1273, 1, Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]);
//pickups++;
}
if(Cell[c][Owned] == 1)
{
Create3DTextLabel("Cell",0x38FF06FF,Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]+0.75, 25.0, 0);
Cell[c][hPickupID]=CreateDynamicPickup(1239, 1, Cell[c][ExteriorX], Cell[c][ExteriorY], Cell[c][ExteriorZ]);
//pickups++;
}
}
}
You did } instant of { .