Need a hand once more
#1

Код:
 error 017: undefined symbol "Name"
pawn Код:
stock GetName(playerid)
{
    new string[24];
    format(string, 24, "%s", pInfo[playerid][Name]);
    return string;
}
I have tried new Name[MAX_PLAYER_NAME];
new Name[24];

Nothing it just gives me this random error -

Код:
error 033: array must be indexed (variable "Name")
Name[MAX_PLAYER_NAME];
new Name[24];
Reply
#2

pawn Код:
stock GetName(playerid)
{
    return pInfo[playerid][Name];
}
pawn Код:
new Name[MAX_PLAYER_NAME];
Can you describe your problem a little bit more?
Reply
#3

Quote:
Originally Posted by [MM]RoXoR[FS]
Посмотреть сообщение
pawn Код:
stock GetName(playerid)
{
    return pInfo[playerid][Name];
}
pawn Код:
new Name[MAX_PLAYER_NAME];
Can you describe your problem a little bit more?
Its self explanatory at this point.
Reply
#4

pawn Код:
stock GetName(playerid)
{
        new Name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Name, sizeof(Name));
        return Name;
}
Reply
#5

Quote:
Originally Posted by Skaizo
Посмотреть сообщение
pawn Код:
stock GetName(playerid)
{
        new Name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Name, sizeof(Name));
        return Name;
}
That worked thanks again Skaizo lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)