[DiscordArchive] anyone know what problem is here?
[DiscordArchive] anyone know what problem is here?
Archived author: Yukki • Posted: 2021-10-23T16:58:05.074000+00:00
Original source
anyone know what problem is here?
Archived author: Yukki • Posted: 2021-10-23T16:58:38.586000+00:00
Original source
```lua
player:GetAura(spell):SetStackAmount(player:GetData('parangon_stats_'..spell))```
![[Image: unknown.png?ex=690c2b09&is=690ad989&hm=3...20d019c52&]](https://cdn.discordapp.com/attachments/448835144564867094/901515018699415643/unknown.png?ex=690c2b09&is=690ad989&hm=3b626f89f7e1d843e1d321c48c5f99bb9112f558e959c778c57e62220d019c52&)
Archived author: Yukki • Posted: 2021-10-23T16:58:50.277000+00:00
Original source
![[Image: unknown.png?ex=690c2b09&is=690ad989&hm=3...20d019c52&]](https://cdn.discordapp.com/attachments/448835144564867094/901515018699415643/unknown.png?ex=690c2b09&is=690ad989&hm=3b626f89f7e1d843e1d321c48c5f99bb9112f558e959c778c57e62220d019c52&)
Archived author: Yukki • Posted: 2021-10-23T16:58:54.685000+00:00
Original source
I get these errors
Archived author: Honey • Posted: 2021-10-23T17:58:52.841000+00:00
Original source
when debugging luas, it is best to add print() statements with the variables use in that line. e.g:
`print('spell: '..spell)`
`print('GetData: '..player:GetData('parangon_stats_'..spell))`
etc
until you know which fails
Archived author: Honey • Posted: 2021-10-23T17:59:14.881000+00:00
Original source
tonumber and tostring can also help
Archived author: Yukki • Posted: 2021-10-23T18:01:26.827000+00:00
Original source
alright, thank you