Include Error - 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: Include Error (
/showthread.php?tid=392477)
Include Error -
DAVIDXP - 14.11.2012
Hi all I have in my pawno/include Stocks.inc and then I compile my GM Gives me these errors:
pawn Код:
C:\Users\David\Desktop\pawno\include\Stocks.inc(10) : error 001: expected token: ")", but found "["
C:\Users\David\Desktop\pawno\include\Stocks.inc(10) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\pawno\include\Stocks.inc(10) : error 017: undefined symbol "P_AntiFall"
C:\Users\David\Desktop\pawno\include\Stocks.inc(10) : fatal error 107: too many error messages on one line
On This Linie:
pawn Код:
if ( P_DATA[ playerid ][ P_AntiFall ] ) P_DATA[ playerid ][ P_AntiFall ] = 0;
Help Mee Please
Re: Include Error -
ikbenremco - 14.11.2012
Show the whole code.
Re: Include Error -
basse - 14.11.2012
pawn Код:
if ( P_DATA[playerid],[P_AntiFall]) P_DATA[playerid],[P_AntiFall] = 0;
try that
Re: Include Error -
Konstantinos - 14.11.2012
Quote:
Originally Posted by basse
pawn Код:
if ( P_DATA[playerid],[P_AntiFall]) P_DATA[playerid],[P_AntiFall] = 0;
try that
|
lol no.
Show lines 9 -11
Re: Include Error -
DAVIDXP - 14.11.2012
Quote:
Originally Posted by Dwane
lol no.
Show lines 9 -11
|
All script
[pawnp
stock SetPlayerPosEx( playerid, Float:X, Float:Y, Float:Z, interior, location[ ] )
9 {
10 if ( P_DATA[ playerid ][ P_AntiFall ] ) P_DATA[ playerid ][ P_AntiFall ] = 0;
11
12 SetPlayerPos( playerid, X, Y, Z );
13 SetPlayerInterior( playerid,interior );
14 SetPlayerVirtualWorld( playerid, 0 );
15
16 new Str[100];
17 format( Str, 100, "~g~~h~%s~n~Interior~w~ %d", location, interior );
18 GameTextForPlayer( playerid, Str, 3000, 1 );
19 return 1;
20 }
[/pawno]
Re: Include Error -
Konstantinos - 14.11.2012
Do you have
in your enum? If yes, try to use it if it's equal to 1, then ..
Re: Include Error -
basse - 14.11.2012
Dwane, i dident say it should work, im just trying to see every possible angle and that was one of them i saw

i'm not that good with sa-mp scripting
Re: Include Error -
Faisal_khan - 14.11.2012
EDIT: Wrong post!