[Help] What i did wrong..
#1

http://pastebin.com/S4iLPCc0
I know i did somenthing wrong in the code, but i dont know what.. I am new at pawno, so if anyone can tell me how to fix this, and this work i will learn from that
Reply
#2

Errors: C:\Users\ws\Desktop\Desktop\Untitled.pwn(117) : error 017: undefined symbol "PlayerInfo"
C:\Users\ws\Desktop\Desktop\Untitled.pwn(117) : warning 215: expression has no effect
C:\Users\ws\Desktop\Desktop\Untitled.pwn(117) : error 001: expected token: ";", but found "]"
C:\Users\ws\Desktop\Desktop\Untitled.pwn(117) : error 029: invalid expression, assumed zero
C:\Users\ws\Desktop\Desktop\Untitled.pwn(117) : fatal error 107: too many error messages on one line
Reply
#3

Under OnDialogResponse, that function should return 0 instead of 1.

EDIT: Why are there 2 of these?
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#4

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
Under OnDialogResponse, that function should return 0 instead of 1.

EDIT: Why are there 2 of these?
pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
new PlayerInfo[MAX_PLAYERS][pInfo];
Still the same error, did everything you said.
Reply
#5

You must declare the variable "PlayerInfo".
At the head of gamemode:

enum pInfo
{
pPosedovanjeFirme2
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#6

pawn Код:
enum pInfo
{
pAdmin
pPosedovanjeFirme2
} // You don't need a ";" here.
new PlayerInfo[MAX_PLAYERS][pInfo]; // Why you had two of these?
P.S: It is not recommended to share your whole gamemode/filterscript in the scripting help section, share your error only.
Reply
#7

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
pawn Код:
enum pInfo
{
pAdmin
pPosedovanjeFirme2
} // You don't need a ";" here.
new PlayerInfo[MAX_PLAYERS][pInfo]; // Why you had two of these?
P.S: It is not recommended to share your whole gamemode/filterscript in the scripting help section, share your error only.
Uhh, okay But not working yet, still same errors.
Reply
#8

try

pawn Код:
enum pInfo
{
pAdmin,
pPosedovanjeFirme2
}; // You don't need a ";" here.
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#9

Nope, still not working.
Tried searching on ******, still showing errors
Reply
#10

Please reply meeeeeeeee
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)