Feche1320 Posted March 8, 2012 Posted March 8, 2012 if bet.sourcep[i] == source then attempt to index field 'sourcep' (a userdata value) bet.sourcep contains the source of the player that executed the command, and bet.sourcep contains the right userdata becouse when I want to get the name of it, it ouputs it correctly.. so what is wrong with it? www.host-ar.com.ar
Castillo Posted March 8, 2012 Posted March 8, 2012 Try this: if ( bet[sourcep][i] == source )then San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Cadu12 Posted March 8, 2012 Posted March 8, 2012 Or just: if bet["sourcep"][i] == source then Ingame nick: Cadu12
Castillo Posted March 8, 2012 Posted March 8, 2012 @Cadu12: As far as I know "sourcep" is a player userdata, if you put it as "sourcep" it'll be a string. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Feche1320 Posted March 9, 2012 Author Posted March 9, 2012 Yes, Solidsnake14's code just worked like a charm. Thanks! www.host-ar.com.ar
Castillo Posted March 9, 2012 Posted March 9, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now