Trouble with the "name" part of creating a property ingame. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Trouble with the "name" part of creating a property ingame. (
/showthread.php?tid=84980)
Trouble with the "name" part of creating a property ingame. -
Outbreak - 04.07.2009
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
Re: Trouble with the "name" part of creating a property ingame. -
Pawno_Master - 04.07.2009
well without any code we cant do anything
Re: Trouble with the "name" part of creating a property ingame. -
Outbreak - 04.07.2009
Nevermind, solved...