Help With Errors.
#1

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;
Reply
#2

Replace "MAX_PLAYER_NAME" with "256"
Reply
#3

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?
Reply
#4

@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))
		{
Reply
#5

MAX_PLAYER_NAME is defined inside a_samp.inc, did you remove it from the include?
Reply
#6

@Sjn,,LOL i forgot #include <a_samp>!
Thanks +1 Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)