Why i getting few errors?
#1

Why i getting this error
Код:
D:\Trucking\gamemodes\Beta.pwn(11) : error 017: undefined symbol "pInfo"
D:\Trucking\gamemodes\Beta.pwn(11) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
I have added this:

pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#2

Is the enum's name pInfo? I mean is it like this
pawn Код:
enum pInfo
Or like this
pawn Код:
enum PlayerInfo
Reply
#3

I think you have it backards...
Код:
new pInfo[MAX_PLAYERS][PlayInfo];
Reply
#4

Yes... because i'm making a register system so..
Reply
#5

Well do you have pInfo defined?
Reply
#6

pawn Код:
new PlayerInfo[MAX_PLAYERS][pInfo];

#define PlayerInfo[MAX_PLAYERS] [pInfo]
Reply
#7

Noo use it like this:
pawn Код:
enum pInfo
{
// ur shit here
};

new PlayerInfo[MAX_PLAYERS][pInfo];
Reply
#8

Well your wrong... i have fixed it by removing the #define and i added like you.. i added the new thing under of the enums and could you help me? after i register its not save and my screen is not move... i mean i can only move but my screen dose not move.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)