[AJUDA] Arena
#3

Deu erros olha minha public playerdeath
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerVirtualWorld(killerid,0);
    SetPlayerVirtualWorld(playerid,0);
	SendDeathMessage(killerid, playerid, reason);
	GameTextForPlayer(playerid,"~r~Morto",1000,0);
	SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
	SetPlayerScore(playerid, GetPlayerScore(playerid) - 0);
	GivePlayerMoney(killerid,GetPlayerMoney(killerid) + 3000);
	paraquedas = false;
    //====================[DB]==================================================
    if(GetPlayerState(killerid) == PLAYER_STATE_DRIVER) {
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(killerid,pname,sizeof(pname));
    format(String, sizeof(String), "%s Foi preso e perdeu 100.000$ [MOTIVO:Cometeu DB] [TEMPO: 1 Minuto]",pname);
    SendClientMessageToAll(COLOR_YELLOW, String);
    Prisao[killerid] = true;
    GivePlayerMoney(killerid, -100000);
    SetPlayerPos(killerid, 197.6661, 173.8179, 1003.0233);
    SetPlayerInterior(killerid, 3);
    SetTimerEx("SetPlayerPrisao", 60000, 0, "i", killerid);
    ResetPlayerWeapons(playerid);
    }
    if(IsInX1[killerid] = true && IsInX1[playerid] = true)
    {
        new string[128],Kpname[MAX_PLAYER_NAME],Dpname[64]
        GetPlayerName(playerid, Dpname, sizeof(Dpname));
        GetPlayerName(killerid, Kpname, sizeof(Kpname));
        format(string,sizeof(string),"[x1w]:%s Matou %s no x1w [ARENA]",Kpname,Dpname);
        SendClientMessageToAll(-1,string);
        IsInX1[playerid] = false;
        IsInX1[killerid] = false;
    }
	return 1;
}
Erros!
Quote:

C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2041) : error 032: array index out of bounds (variable "IsInX1")
C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2607) : warning 211: possibly unintended assignment
C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2607) : warning 211: possibly unintended assignment
C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2607) : error 022: must be lvalue (non-constant)
C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2607) : warning 215: expression has no effect
C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2607) : error 001: expected token: ";", but found ")"
C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2607) : error 029: invalid expression, assumed zero
C:\Users\emilio\Desktop\Samp 0.3e\gamemodes\DMKNOCKOUT.pwn(2607) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Reply


Messages In This Thread
[AJUDA] Arena - by GhosT_[] - 15.06.2012, 00:20
Re: [AJUDA] Arena - by Crueliz0n - 15.06.2012, 01:11
Re: [AJUDA] Arena - by GhosT_[] - 15.06.2012, 15:15
Re: [AJUDA] Arena - by Crueliz0n - 15.06.2012, 15:18
Re: [AJUDA] Arena - by Ades - 15.06.2012, 15:19
Re: [AJUDA] Arena - by GhosT_[] - 15.06.2012, 15:32
Re: [AJUDA] Arena - by Crueliz0n - 15.06.2012, 15:37
Re: [AJUDA] Arena - by GhosT_[] - 15.06.2012, 15:48
Re: [AJUDA] Arena - by Edu33 - 15.06.2012, 16:31
Re: [AJUDA] Arena - by GhosT_[] - 15.06.2012, 16:34

Forum Jump:


Users browsing this thread: 2 Guest(s)