05.04.2013, 07:37
So I did something like this:
on the top of the mod:
OnPlayerConnect:
stock GetName:
but when im trying to use this, i get error: argument type mismatch (argument 2)
line:
Any solutions ?
on the top of the mod:
pawn Код:
enum pInfo
{
pUserName[24],
//etc ...
};
new pData[MAX_PLAYERS][pInfo];
pawn Код:
GetPlayerName(playerid, pData[playerid][pUserName], 24);
pawn Код:
stock GetName(playerid) return pData[playerid][pUserName];
line:
pawn Код:
NameTD[playerid] = TextDrawCreate(37.000000, 320.000000, GetName(playerid));