i get error undefined symbol
#1

I get this and many others error which are almost the same..

pawn Код:
error 017: undefined symbol "PlayerName"
and i have all of this funcion in my gamemode

pawn Код:
stock PlayerName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name, sizeof(name));
    return name;
}
and all others but i'm getting this error on some simple message

pawn Код:
format(string, 128, "test: %s", PlayerName(playerid));
SendClientMessage(playerid, -1, string);
any ideas?
Reply
#2

]stock PlayerName(playerid)

^ ??
Reply
#3

i have made a mistake will i was uploading it so.. sry :/

it's like that:

pawn Код:
stock PlayerName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name, sizeof(name));
    return name;
}
Reply
#4

What are the other errors? Because I don't see any errors in the codes you gave us.
Reply
#5

undefined symbol but some other things that i already have :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)