SRL Archive - Bugs

GetPlayer


KingKong

2011-05-09 02:10:11

GetPlayer doesn't seem to work if the player name has spaces in between such as 'A B C' or 'King Kong' or 'Wat ever', it just results in -1

Echo_

2011-05-09 15:21:12

Have you tried adding underscores: 'A_B_C', 'King_Kong' or 'Wat_ever'?

i luffs yeww

2011-05-09 15:24:25

Shouldn't A_B_C, A B C, and A-B-C all work different? Or are A_B_C, A B C, and A-B-C all the same? I don't remember, but I know it's either or.

KingKong

2011-05-09 18:14:20

I tried with underscores, but it didn't work :(

Brandon

2011-05-09 18:32:50

hmm are u trying to get your own player? is the name in quotes? if so I dont get why it wont work.. you got code?

KingKong

2011-05-09 19:41:50

From: ggzz
hmm are u trying to get your own player?


No, getplayer is mainly used to get other players.

From: ggzz
is the name in quotes? if so I dont get why it wont work.. you got code?


If you mean did i input a string ,yes(i know how it works). It works when I try it with players with no spaces in their name(eg: KingKong), but doesn't work if it contains spaces(eg: Donkey Kong).