04.08.2012, 09:39
What's wrong in that use of ternanry operator?
It should work like that: if statsLastName is null, it would show current player name. Else, it would show statsLastName
pawn Код:
(pInfo[playerid][statsLastName][0] == EOS) ? (GetPlayerNameEx(playerid)) : (pInfo[playerid][statsLastName])
pawn Код:
#define GetPlayerNameEx(%0) (szName[%0])
Quote:
(1385 -- 1386) : error 033: array must be indexed (variable "szName") |