Include Error
#1

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
Reply
#2

Show the whole code.
Reply
#3

pawn Код:
if ( P_DATA[playerid],[P_AntiFall]) P_DATA[playerid],[P_AntiFall] = 0;
try that
Reply
#4

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
Reply
#5

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]
Reply
#6

Do you have
pawn Код:
P_AntiFall
in your enum? If yes, try to use it if it's equal to 1, then ..
Reply
#7

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
Reply
#8

EDIT: Wrong post!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)