Error array
#1

F:\CNR - RP\gamemodes\arcnr2p.pwn(12037) : error 033: array must be indexed (variable "-unknown-")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

line : new o = GetName(playerid);
Reply
#2

CTRL+F find -unknown-
Reply
#3

It's supposed you use GetName to return the player's name directly and not using GetPlayerName and storing the name. Why are you trying to store to an integer the name? Either use "GetName(playerid)" or "o":
pawn Код:
new o[MAX_PLAYER_NAME];
GetPlayerName(playerid, o, MAX_PLAYER_NAME);
Reply


Forum Jump:


Users browsing this thread: