![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on lua error: Attempt to index... please help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; error: attempt to index global 'player' (a nil value) Code: function DealPlayersHand() for j=1,92 do card_inuse[j] = false end --end ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
error: attempt to index global 'player' (a nil value)
Code:
function DealPlayersHand() for j=1,92 do card_inuse[j] = false end --end for for i=1,4 do player[i] = math.random(1,92) -- < THIS LINE while card_inuse[player[i]] do TryCard = math.random(1,92) end --end while card_inuse[player[i]] = true end -- end for end --DealPlayersHand |
|
|
|
![]() |
| Tags |
| attempt , error , index , lua |
| Thread Tools | |
|
|