Include help
#1

Hi, I'm trying to write a property include for my GM. Problem is, Im stuck on something.

pawn Код:
stock AddProperty(const name[], Float:X, Float:Y, Float:Z, propCost, propSell, propEarns)
Now this is something that will be called in a command, for example /createprop and it will create the prop in-game. Thing is, how can I send Client Messages to the player? If I add playerid in there that would fail, so how would I do it? O_o
Reply
#2

....
Reply
#3

Quote:
Originally Posted by [TPG
Coole210 ]
....

OnPlayerCommandText has playerid.

Just send message at the /createprop >.>
No ... because I need to make sure they have set the correct params in the stock >_>
Reply
#4

Quote:
Originally Posted by Seif_
Player name?
Explain? O_o
Reply
#5

Quote:
Originally Posted by » Pawnst★r «
Quote:
Originally Posted by [TPG
Coole210 ]
....

OnPlayerCommandText has playerid.

Just send message at the /createprop >.>
No ... because I need to make sure they have set the correct params in the stock >_>
show us the stock.
Reply
#6

Just make a 'playerid' parameter. You can pass it from OnPlayerCommandText
Reply
#7

It's at the top. That's all you need to see, the params. I want to be able to send a client message if the player doesn't enter a correct value.

For example if he forgets to put in a name, or if the price is too low/high. But, I can't do this because playerid isn't defined anywhere.

Quote:
Originally Posted by dice7
Just make a 'playerid' parameter. You can pass it from OnPlayerCommandText
If I do that it will return a tag mismatch won't it?
Reply
#8

Why would it ?
Reply
#9

Just make that in the command and only execute the function if everything is right.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)