errors
#1

fixed
Reply
#2

How did you define PlayerName?
Reply
#3

Код:
    new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
Reply
#4

Quote:
Originally Posted by boomerboom
Посмотреть сообщение
Код:
    new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
shall i add it local or global
Reply
#5

How did you define PlayerName? Try change PlayerName(killerid) to PlayerName[killerid].
Reply
#6

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
How did you define PlayerName?
i just added this new
Код:
PlayerName[MAX_PLAYER_NAME];
Reply
#7

Change it to:
pawn Код:
// global:
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];
pawn Код:
// OnPlayerConnect:
GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME);
and use it as Ranshand said:
pawn Код:
PlayerName[killerid]
Reply
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Change it to:
pawn Код:
// global:
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];
pawn Код:
// OnPlayerConnect:
GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME);
and use it as Ranshand said:
pawn Код:
PlayerName[killerid]
i can't solve it can anyone do it for me
Reply
#9

BUMP :::::Help Plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz:::: :
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)