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

what the mess u have done
just tell what u want to do on death
Reply
#3

and please post this topic on scripting discussions instead server support
Reply
#4

Quote:
Originally Posted by $$inSane
Посмотреть сообщение
and please post this topic on scripting discussions instead server support
Please stop double posting after 3 minutes :P
Reply
#5

Are you sure you arent using enums?
Wrong section, must be posted in Scripting Discussion as it is related to scripting.
Reply
#6

Sorry for wrong section. And yes i am using enums. You can see my code that i try to put this on onto my GM BFTDM.
Reply
#7

Quote:
Originally Posted by Rg-Gaming.Info
Посмотреть сообщение
Sorry for wrong section. And yes i am using enums. You can see my code that i try to put this on onto my GM BFTDM.
Yeah, post this in Scripting Discussion section. That's where all the experienced scripters browse, finding threads to assist people.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)