4 annoying errors.
#1

How can I fix those errors? I fucking hate them. Everytime I try/change anything, I get THOSE;
Quote:

C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : error 017: undefined symbol "sendername"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : error 017: undefined symbol "sendername"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : fatal error 107: too many error messages on one line

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


4 Errors.

Line 227: GetPlayerName(playerid, sendername, sizeof(sendername));
Reply
#2

add this above that line.
pawn Код:
new sendername[MAX_PLAYERS_NAME];
Reply
#3

I'm starting to think that people can't read anymore these days... I don't know what goes in their heads. Maybe it's something like: "oh shit, I got errors! Let's copy-paste them to the sa-mp forum without reading them first."

Undefined symbol, what could it possibly mean? That a symbol is not defined, maybe? And that you'll have to define it, maybe? (being sarcastic right now).

new sendername[MAX_PLAYER_NAME];

Edit: too late.
Reply
#4

C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : error 017: undefined symbol "MAX_PLAYERS_NAME"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : error 036: empty statement
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(227) : fatal error 107: too many error messages on one line

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


4 Errors.


EDIT: Vince, I read the errors, and I know that I need to define it, but I dont know what to put there.
Reply
#5

pawn Код:
sendername[MAX_PLAYER_NAME]; // PLAYER not PLAYERS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)