Simple Help [+rep for helpers]
#1

Explain:

I try to create system but i'm new on the subject, I do not know how to set #define to my system...

ERROR:

Код:
C:\Users\*\Desktop\Untitled.pwn(47) : error 017: undefined symbol "PlayerInfo"
C:\Users\*\Desktop\Untitled.pwn(47) : warning 215: expression has no effect
C:\Users\*\Desktop\Untitled.pwn(47) : error 001: expected token: ";", but found "]"
C:\Users\*\Desktop\Untitled.pwn(47) : error 029: invalid expression, assumed zero
C:\Users\*\Desktop\Untitled.pwn(47) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
How to fix it? Thanks for helpers.
Reply
#2

pawn Код:
enum pInfo,
{
your enums
};

new PlayerInfo[MAX_PLAYERS][pInfo],
Reply
#3

C:\Users\*\Desktop\Untitled.pwn(16) : error 001: expected token: "{", but found ","
C:\Users\*\Desktop\Untitled.pwn(19) : error 010: invalid function or declaration
C:\Users\*\Desktop\Untitled.pwn(24) : error 020: invalid symbol name ""
C:\Users\*\Desktop\Untitled.pwn(55) : error 017: undefined symbol "pGambling"
C:\Users\*\Desktop\Untitled.pwn(56) : error 029: invalid expression, assumed zero
C:\Users\*\Desktop\Untitled.pwn(56) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\*\Desktop\Untitled.pwn(61) : warning 203: symbol is never used: "OnFilterScriptInit"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

I'ts after I put the

enum pInfo,
{
your enums
};

new PlayerInfo[MAX_PLAYERS][pInfo],
Reply
#4

Show line number 46 and 47.
Reply
#5

Avi Raj the lines:

if(PlayerInfo[playerid][p*******])
else { format(string, sizeof(string),
Reply
#6

pawn Код:
enum pInfo,
{
pGambling
};

new PlayerInfo[MAX_PLAYERS][pInfo],
and it should be like this

pawn Код:
(PlayerInfo[playerid][pGambling])
GetPlayerNameEx

pawn Код:
stock GetPlayerNameEx(playerid)
{
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
    return Name;
}
Reply
#7

That is single line, I said 46 & 47.
Reply
#8

Avi Raj:

new string[128];
new ***** = random(***** )+***** ;
(PlayerInfo[playerid][p***** ])
else { format(string, sizeof(string), "*****", GetPlayerNameEx(playerid),***** ); }
Reply
#9

Do what I posted, you won't get errors.
Reply
#10

I did it and i got problems why ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)