Big problem please help !
#1

Hello guys i have a little problem here every time i try to implement this function into OnPlayerDeath i get
Код:
invalid subscript (not an array or too many subscripts): "pScore"
expression has no effect
expected token: ";", but found "]"
invalid expression, assumed zero
too many error messages on one line
That is for the line:
Код:
pScore[killerid]++;

pawn Код:
SendDeathMessage(killerid, playerid, reason);
 
    if(killerid != INVALID_PLAYER_ID)
    {
        pScore[killerid]++;
        SetPlayerScore(killerid, pScore[killerid]);
 
        pCash[killerid] += 100;
        GivePlayerMoney(killerid, 100);
    }
 
    pDeaths[playerid]++;
    pCash[playerid] -= 100;
    pScore[playerid]--;
    SetPlayerScore(playerid, pScore[playerid]);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, pCash[playerid]);
Any idea how to fix it ? I took it from the wiki.
Reply


Messages In This Thread
Big problem please help ! - by Rg-Gaming.Info - 11.06.2012, 02:47
Re: Big problem please help ! - by $$inSane - 11.06.2012, 03:28
Re: Big problem please help ! - by $$inSane - 11.06.2012, 03:31
Re: Big problem please help ! - by JhnzRep - 11.06.2012, 05:28
Re: Big problem please help ! - by Littlehelper - 11.06.2012, 06:46
Re: Big problem please help ! - by Rg-Gaming.Info - 11.06.2012, 08:28
Re: Big problem please help ! - by Jhero - 11.06.2012, 12:02

Forum Jump:


Users browsing this thread: 3 Guest(s)