|
|
#1 |
|
Banned
![]() Join Date: Jan 2012
Location: Bulgaria
Posts: 222
Reputation: 8
|
Hello guys i have a little problem here every time i try to implement this function into OnPlayerDeath i get
Code:
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 Code:
pScore[killerid]++; pawn Code:
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. I changed all pKills to pScore |
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 569
Reputation: 21
|
pScore[killerid] = pScore[killerid] + 1; try this
|
|
|
|
|
|
#3 |
|
Banned
![]() Join Date: Jan 2012
Location: Bulgaria
Posts: 222
Reputation: 8
|
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: INDIA !!! :)) Punjab
Posts: 1,078
Reputation: 107
|
do u have this at top < inscript > ?
-> new pScore[MAX_PLAYERS]; if no add it |
|
|
|
|
|
#5 |
|
Banned
![]() Join Date: Jan 2012
Location: Bulgaria
Posts: 222
Reputation: 8
|
|
|
|
|
|
|
#6 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 569
Reputation: 21
|
not in enum, but new pScore[MAX_PLAYERS]
|
|
|
|
|
|
#7 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2012
Location: samp.teamshrimp.com:7777
Posts: 226
Reputation: 20
|
Idk how your saving system/player stats are set up but if you have a enum then you need something like
pawn Code:
Show your enum and then the array it goes to. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OnPlayerDeath problem. | Matz | Scripting Help | 5 | 28/01/2012 07:00 PM |
| Problem with onplayerdeath | Face9000 | Scripting Help | 4 | 28/01/2012 12:06 AM |
| Problem With OnPlayerDeath | matute | Scripting Help | 9 | 27/01/2012 09:45 PM |
| OnPlayerDeath Problem | Nick Deeds | Help Archive | 3 | 21/03/2010 10:04 AM |
| Problem with OnPlayerDeath...Need Help | *BueNoOo* | Help Archive | 3 | 27/06/2009 08:50 PM |