|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Don`t stalk me..
Posts: 967
Reputation: 18
|
It works! Thanks, now I got another issue!
pawn Code:
Last edited by HydraX; 31/07/2011 at 08:10 PM. |
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Location: New Zealand
Posts: 3,007
Reputation: 368
|
pawn Code:
That has one single param, playerid. Your code should look more like pawn Code:
Also, for single params, you can just do this: pawn Code:
|
|
|
|
|
#3 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Don`t stalk me..
Posts: 967
Reputation: 18
|
Doesn't that return a "Strings without a length are deprecated" warning ?
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Don`t stalk me..
Posts: 967
Reputation: 18
|
BTW, When you type /slap 1, I get an Unknown Command, and not "Player not Connected".
Note That only ID 0 is connected. |
|
|
|
|
#5 |
|
Big Clucker
![]() ![]() Join Date: Jul 2011
Posts: 81
Reputation: 0
|
Add a return 1; to the end of it and make the else statement...
pawn Code:
|
|
|
|
|
#6 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Don`t stalk me..
Posts: 967
Reputation: 18
|
Wait what? Where am I suppose to put it?
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Don`t stalk me..
Posts: 967
Reputation: 18
|
So Like this?
pawn Code:
|
|
|
|
|
#8 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Feb 2011
Location: Australia
Posts: 819
Reputation: 60
|
pawn Code:
But I think you need to make a "giveplayerid" and make it so "giveplayerid" is the playerid that gets slapped? Otherwise the script is going to confuse it's self.. |
|
|
|
|
#9 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Mar 2009
Location: Don`t stalk me..
Posts: 967
Reputation: 18
|
I don't get what you are saying.
I still need help! Now it doesn't return a Message when it should send "Player not connected" |
|
|
|
|
#10 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Nov 2010
Location: Israel
Posts: 846
Reputation: 41
|
Try this, looks perfect to me. HOWEVER, not tested.
Also, "i" parameter is an integer and "u" parameter represents User (bot/player) ... BTW, do not update your SA-MP server to R5 until Y_Less fixes the "u" parameter, meanwhile, stay with R4 or lower. pawn Code:
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Command returns SERVER: Unknown command | admantis | Help Archive | 7 | 09/12/2010 06:52 AM |
| Command that returns SERVER: Unknown Command. | pagie1111 | Help Archive | 11 | 11/04/2010 09:55 AM |
| Commands working, but returns Server: Unknown Command | WickWoody | Help Archive | 1 | 09/09/2009 12:13 AM |
| Onconsoletext always returns unknown command ... | ғαιιοцт | Help Archive | 7 | 09/07/2009 05:05 PM |
| Returns as Unknown Command | JoeDaDude | Help Archive | 4 | 09/02/2009 04:00 PM |