2 Errors - 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: 2 Errors (
/showthread.php?tid=283139)
2 Errors -
Ehab1911 - 13.09.2011
Here is the code:
pawn Код:
static const stock gTree_models[] =
{
700 //Small Tree
701 //Small Thick Bush
702 //Small Thin Bush
703 //Big Tree with lots of Bushes Surrounding
704 //Big Tree
705 //Big Tree with some Bushes Surrounding
706 //Gigantic Tree with some Bushes Surrounding
707 //Big Tree with some Bushes Surrounding
708 //Big Tree with some Bushes Surrounding
709 //MASSIVE Tree with some bushes
710 //Palm Tree
711 //Short Palm Tree
712 //Short&Thick Coconut Tree
713 //Medium Tree
714 //Gigantic Tree
715 //Huge Tree
716 //Palm Tree on a Stand
717 //Small Tree on a Stand
718 //Big Palm Tree on a Stand
719 //Huge Tree
720 //Huge Tree
721 //Massive Tree
722 //Gigantic Tree
723 //Big Tree
724 //Biggest Tree(I found so far)
725 //Huge Tree
};
stock RemoveTrees(playerid)
{
for(new i; i < sizeof(gTree_Models); ++i)
{
RemoveBuildingForPlayer(playerid, gTree_Models[i], 0.0, 0.0, 0.0, 6000.0);
}
}
The errors are:
pawn Код:
C:\Users\asd\Downloads\SAMP 0.3d\samp03dsvr_RC1_win32\gamemodes\project.pwn(43) : error 001: expected token: ";", but found "-integer value-"
C:\Users\asd\Downloads\SAMP 0.3d\samp03dsvr_RC1_win32\gamemodes\project.pwn(68) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Re: 2 Errors -
niCe - 13.09.2011
Divide the integers with ",".
Re: 2 Errors -
[MWR]Blood - 13.09.2011
You could just post in the old topic you made about that - no need to make a new one.
Anyways, that aren't all the trees around GTA SA - see your old topic, there I gave you a link that shows you a list of completely all trees IDs.
Re: 2 Errors -
Ehab1911 - 13.09.2011
Oh, Stupid me! LOL, Thank you mate

.