Help With 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: Help With Errors. (
/showthread.php?tid=587181)
Help With Errors. -
kleantzhubi - 28.08.2015
Hello,Who can help me to fix this?
Код:
OnDeath.pwn(7) : error 017: undefined symbol "MAX_PLAYER_NAME"
OnDeath.pwn(7) : error 029: invalid expression, assumed zero
\OnDeath.pwn(7) : warning 221: label name "Float" shadows tag name
OnDeath.pwn(7) : error 017: undefined symbol "X"
OnDeath.pwn(7) : fatal error 107: too many error messages on one line
Line 17 :
Код:
new string[128],sendername[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z;
Re: Help With Errors. -
Gazzy - 28.08.2015
Replace "MAX_PLAYER_NAME" with "256"
AW: Re: Help With Errors. -
Kaliber - 28.08.2015
Quote:
Originally Posted by Gazzy
Replace "MAX_PLAYER_NAME" with "256"
|
Oh pls come on...thats no solution...MAX_PLAYER_NAME is btw defined by 24 not 256!
And...can you show us more lines?
Like line 1-17?
Re: Help With Errors. -
kleantzhubi - 28.08.2015
@Gazzy,Still not working..
@Kaliber
Код:
//============================================//
//=================[ Death ]==================//
//============================================//
public OnPlayerDeath(playerid, killerid, reason)
{
SetPVarInt(playerid, "Delay", GetCount()+5000);
new string[128],sendername[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
DeletePVar(playerid,"CrackTime"), DeletePVar(playerid,"Wound");
DeletePVar(playerid,"RamHouse"), DeletePVar(playerid,"RamVehicle");
DeletePVar(playerid,"Bomb");
if(GetPVarInt(playerid,"HavingBall") != 0) Baller = 999, SetPlayerWorldBounds(playerid, 4507.66, -2989.536, 2989.536, -4274.103), DeletePVar(playerid,"HavingBall"), DeletePVar(playerid,"BallAnim");
if(GetPVarInt(playerid, "Tut") == 0)
{
if(IsPlayerConnected(killerid))
{
Re: Help With Errors. -
Sjn - 28.08.2015
MAX_PLAYER_NAME is defined inside a_samp.inc, did you remove it from the include?
Re: Help With Errors. -
kleantzhubi - 28.08.2015
@Sjn,,LOL i forgot #include <a_samp>!
Thanks +1 Rep