04.07.2009, 15:38
Hi, I've recently made my own property system.
I'm working now on a command to let me create properties ingame, rather than have to create them out of game.
It automatically creates the pickup and adds the property to the game. And if i want to keep the proprty i use /saveprops which will re-write the database adding the new properties.
The problem im having is..
i have got so far with the command for creating them. But i cant get the last part working.
i want it to be like this..
/createprop [price] sellvalue] [payout] [name]
The name part is what im having trouble with.. Its becoming confused with the "payout"
I want to be able to create the property, and have the name as a string, but be allowed to have spaces, so for example..
/createprop 1000000 500000 30000 My New Property
But i also want to be able to do the name witohut spaces. so instead of My New Property i could have My Prop or NewProp
I dont want to have _ inplace of spaces.
Could someone help with this part place
I'm working now on a command to let me create properties ingame, rather than have to create them out of game.
It automatically creates the pickup and adds the property to the game. And if i want to keep the proprty i use /saveprops which will re-write the database adding the new properties.
The problem im having is..
i have got so far with the command for creating them. But i cant get the last part working.
i want it to be like this..
/createprop [price] sellvalue] [payout] [name]
The name part is what im having trouble with.. Its becoming confused with the "payout"
I want to be able to create the property, and have the name as a string, but be allowed to have spaces, so for example..
/createprop 1000000 500000 30000 My New Property
But i also want to be able to do the name witohut spaces. so instead of My New Property i could have My Prop or NewProp
I dont want to have _ inplace of spaces.
Could someone help with this part place