Help with errors
#1

Hi, every body. Can you help me whit this errors?

Код:
(134) : error 017: undefined symbol "zaid"
(134) : warning 215: expression has no effect
(134) : error 001: expected token: ";", but found "]"
(134) : error 029: invalid expression, assumed zero
(134) : fatal error 107: too many error messages on one line
Line:
Код:
zaid[ playerid ] ++;
All script
Код:
Uzkraunam(playerid);
new stringas[ 50 ],vardas[ 24 ];
GetPlayerName( playerid, vardas, 24 );
format(stringas, 50, "Labas, %s", vardas);
GameTextForPlayer(playerid, stringas, 10000, 6);
zaid[ playerid ] ++;
Sorry for my English I'm from Lithuania
Reply
#2

pawn Код:
new zaid[MAX_PLAYERS];
Reply
#3

New I have this errors

Код:
(698) : warning 235: public function lacks forward declaration (symbol "Saugojimas")
(727) : warning 235: public function lacks forward declaration (symbol "Uzkraunam")
Lines
Код:
698 - public Saugojimas(playerid,bool:simple)
727 - public Uzkraunam(playerid)
Reply
#4

pawn Код:
forward Saugojimas(playerid,bool:simple);
forward Uzkraunam(playerid);
These under your includes.
About the zaid thing, make sure you place it under your includes(outside any callback).
pawn Код:
new zaid[MAX_PLAYERS];
As Adytza. said
Reply
#5

you need a forward

and the variable should be outside as you use it as global

pawn Код:
new zaid[MAX_PLAYERS];//should be above of any callbacks!
public OnGameModeInit()
{
return 1;
}
pawn Код:
forward augojimas(playerid,bool:simple);
foward Uzkraunam(playerid);
Reply
#6

Wow thanks, +rep for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)