Rg-Gaming.Info
11/06/2012, 02:30 PM
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]++;
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 and i am trying to implement it in the BFTDM GM(my gm). And i am using register system from here (http://forum.sa-mp.com/showthread.php?t=273088). I changed all pKills to pScore
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]++;
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 and i am trying to implement it in the BFTDM GM(my gm). And i am using register system from here (http://forum.sa-mp.com/showthread.php?t=273088). I changed all pKills to pScore