OnPLayerDeath Help Getting errors
#1

pawn Код:
Spree[killerid]++;
    Spree[playerid] = 0;
    new string[100];
    if(Spree[killerid] == 10)//Checking for 10 kills
    {
        format(string, sizeof(string), "%s is on a killing spree of %d kills. Junior Killer!", Name(killerid), Spree[killerid]);
        SendClientMessageToAll(COLOR_NAVY, string);
        SendClientMessage(killerid, COLOR_GREEN, "You are on a killing spree of 10 kills. +2 score");
        GivePlayerScore(killerid, 2);
    }
    else if(Spree[killerid] == 20)//For 20 kills
    {
        format(string, sizeof(string), "%s is on a killing spree of %d kills. Senior Killer!", Name(killerid), Spree[killerid]);
        SendClientMessageToAll(COLOR_NAVY, string);
        SendClientMessage(killerid, COLOR_GREEN, "You are on a killing spree of 20 kills. +4 score");
        GivePlayerScore(killerid, 4);
    }
    else if(Spree[killerid] == 30)//30 kills
    {
        format(string, sizeof(string), "%s is on a killing spree of %d kills. Master Killer!", Name(killerid), Spree[killerid]);
        SendClientMessageToAll(COLOR_NAVY, string);
        SendClientMessage(killerid, COLOR_GREEN, "You are on a killing spree of 30 kills. +6 score");
        GivePlayerScore(killerid, 6);
    }
    else if(Spree[killerid] == 40)//40 kills
    {
        format(string, sizeof(string), "%s is on a killing spree of %d kills. General Killer!", Name(killerid), Spree[killerid]);
        SendClientMessageToAll(COLOR_NAVY, string);
        SendClientMessage(killerid, COLOR_GREEN, "You are on a killing spree of 40 kills. +8 score");
        GivePlayerScore(killerid, 8);
    }
    else if(Spree[killerid] == 50)//50 kills
    {
        format(string, sizeof(string), "%s is on a killing spree of %d kills. Insane Killer!", Name(killerid), Spree[killerid]);
        SendClientMessageToAll(COLOR_NAVY, string);
        SendClientMessage(killerid, COLOR_GREEN, "You are on a killing spree of 50 kills. +10 score");
        GivePlayerScore(killerid, 10);
    }
    else if(Spree[killerid] == 60)//60 kills
    {
        format(string, sizeof(string), "%s is on a killing spree of %d kills. God Killer!", Name(killerid), Spree[killerid]);
        SendClientMessageToAll(COLOR_NAVY, string);
        SendClientMessage(killerid, COLOR_GREEN, "You are on a killing spree of 60 kills. +12 score");
        GivePlayerScore(killerid, 12);
    }

Went I compile I get This error

PHP код:
C:\Documents and Settings\PhongLan\Desktop\New Folder (19)\gamemodes\SATDM_v14.pwn(16874) : error 012invalid function callnot a valid address
C
:\Documents and Settings\PhongLan\Desktop\New Folder (19)\gamemodes\SATDM_v14.pwn(16874) : warning 215expression has no effect
C
:\Documents and Settings\PhongLan\Desktop\New Folder (19)\gamemodes\SATDM_v14.pwn(16874) : error 001expected token";"but found ")"
C:\Documents and Settings\PhongLan\Desktop\New Folder (19)\gamemodes\SATDM_v14.pwn(16874) : error 029invalid expressionassumed zero
C
:\Documents and Settings\PhongLan\Desktop\New Folder (19)\gamemodes\SATDM_v14.pwn(16874) : fatal error 107too many error messages on one line 
can anyone help +REP+REP+REP

-Regard john
Reply


Messages In This Thread
OnPLayerDeath Help Getting errors - by donhu789 - 10.11.2013, 08:45
Re: OnPLayerDeath Help Getting errors - by SAMProductions - 10.11.2013, 09:01
Re: OnPLayerDeath Help Getting errors - by Twizted - 10.11.2013, 09:03
Re: OnPLayerDeath Help Getting errors - by donhu789 - 10.11.2013, 09:03
Re: OnPLayerDeath Help Getting errors - by SAMProductions - 10.11.2013, 09:05
Re: OnPLayerDeath Help Getting errors - by qazwsx - 10.11.2013, 09:15
Re: OnPLayerDeath Help Getting errors - by donhu789 - 10.11.2013, 09:16
Re: OnPLayerDeath Help Getting errors - by donhu789 - 10.11.2013, 09:29

Forum Jump:


Users browsing this thread: 1 Guest(s)