errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: errors (
/showthread.php?tid=490593)
errors -
AroseKhanNiazi - 27.01.2014
fixed
Re: errors -
Konstantinos - 27.01.2014
How did you define PlayerName?
Re: errors -
boomerboom - 27.01.2014
Код:
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
Re: errors -
AroseKhanNiazi - 27.01.2014
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
Re: errors -
Ranshand - 27.01.2014
How did you define
PlayerName? Try change
PlayerName(killerid) to
PlayerName[killerid].
Re: errors -
AroseKhanNiazi - 27.01.2014
Quote:
Originally Posted by Konstantinos
How did you define PlayerName?
|
i just added this new
Код:
PlayerName[MAX_PLAYER_NAME];
Re: errors -
Konstantinos - 27.01.2014
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:
Re: errors -
AroseKhanNiazi - 27.01.2014
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:
|
i can't solve it can anyone do it for me
Re: errors -
AroseKhanNiazi - 27.01.2014
BUMP :::::Help Plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz:::: :