SA-MP Forums Archive
[Help] What i did wrong.. - 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: [Help] What i did wrong.. (/showthread.php?tid=511697)



[Help] What i did wrong.. - ghostomgg - 06.05.2014

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


Re: [Help] What i did wrong.. - ghostomgg - 06.05.2014

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


Re: [Help] What i did wrong.. - Aerotactics - 06.05.2014

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];



Re: [Help] What i did wrong.. - ghostomgg - 07.05.2014

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.


Re: [Help] What i did wrong.. - Syncro - 07.05.2014

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

enum pInfo
{
pPosedovanjeFirme2
}
new PlayerInfo[MAX_PLAYERS][pInfo];


Re: [Help] What i did wrong.. - Beckett - 07.05.2014

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.


Re: [Help] What i did wrong.. - ghostomgg - 07.05.2014

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.


Re: [Help] What i did wrong.. - jueix - 07.05.2014

try

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



Re: [Help] What i did wrong.. - ghostomgg - 08.05.2014

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


Re: [Help] What i did wrong.. - ghostomgg - 13.05.2014

Please reply meeeeeeeee