02.03.2013, 11:42
Quote:
Welcome to SA-MP forums, YahyaBR.
It is good that you've done enough research on your own and actually have gotten somewhere. And your script is a lot like with what I started up with 6 years ago. The error line is indeed line 50 in your posted script. The syntax of SendClientMessage is SendClientMessage(playerid, color, message[]). This means that the first 2 parameters are integers (playerid and color - the second parameter is often used with a HEX representation, though) and the 3rd parameter (message) is supposed to be an array. A string message such as "Hey!" is actually an array and after you write a message, the [] characters are not required any more. Please make sure you go through the useful documentation provided at the wiki. Start off with the basics. // Edit: the problem in the second code is that you have 2 returns in the same code block. Returning means that the callback will stop processing the code. This is probably not what you want. pawn Код:
|
but what should i do when im gonna add more command
EDIT:
this one answered my question
Quote:
pawn Код:
Or just use my code: pawn Код:
|