|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Posts: 1,487
Reputation: 63
|
How to fix this? It only works for one person.
pawn Code:
http://tinypic.com/r/2r2napy/7 http://tinypic.com/r/xpd5cz/7 http://tinypic.com/r/147ade/7 http://tinypic.com/r/34t1swn/7 http://tinypic.com/r/jsehkx/7 Look at the ids, the names and the lists, the one that has otto twice in it was supposed to be backfire. Last edited by willsuckformoney; 07/11/2010 at 02:54 AM. |
|
|
|
|
#2 |
|
Banned
![]() Join Date: Oct 2009
Location: UK
Posts: 931
Reputation: 0
|
Let me guesss - only for you?
ApplyAnimation(playerid - cange that to "ID" in second part. |
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Posts: 1,487
Reputation: 63
|
That's not it, one sec I take a screen and why would I wanna apply an animation to the person I am WANKING ON? The animation is like that because it applies for the player that types the command.
|
|
|
|
|
#4 |
|
Banned
![]() Join Date: Oct 2009
Location: UK
Posts: 931
Reputation: 0
|
better use zcmd...
pawn Code:
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Posts: 1,487
Reputation: 63
|
pawn Code:
|
|
|
|
|
#6 |
|
Banned
![]() Join Date: Oct 2009
Location: UK
Posts: 931
Reputation: 0
|
let me explane something
playerid = player who types the command ID - its in your sscanf So first of all pawn Code:
you were making `elsle if` after sscanf and then `else` would never work. |
|
|
|
|
#7 |
|
Little Clucker
![]() Join Date: Jan 2009
Posts: 3
Reputation: 0
|
Your problem is that you use GetPlayerName on ID before you find out what ID is.
That means when you use "GetPlayerName(ID,aName,sizeof(aName));" ID is still new, uninitialised, aka 0. So the name will always be the name of player 0. pawn Code:
|
|
|
|
|
#8 | |
|
Banned
![]() Join Date: Oct 2009
Location: UK
Posts: 931
Reputation: 0
|
Quote:
pawn Code:
FAIL? HAHAHAHAHAAAaaaaaaaa oftopicer
|
|
|
|
|
|
#9 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Dec 2009
Posts: 1,487
Reputation: 63
|
ID is to take place for the player's ID....
|
|
|
|
|
#10 |
|
Banned
![]() Join Date: Oct 2009
Location: UK
Posts: 931
Reputation: 0
|
Fail to in fact he was right
willsuck - you need to be more careful. like i sed `!` means `NOT` `playerid` player who types `IsPlayerConnected(playerid)` If typer is connected `!IsPlayerConnected(playerid)` if typer is NOT connected Just follow this and your command will work. pawn Code:
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sscanf2 | Hornet600 | Help Archive | 10 | 01/11/2010 03:26 PM |
| sscanf2 | ihatetn931 | Help Archive | 0 | 21/09/2010 05:54 AM |
| Givecash with SSCANF2 | LZLo | Help Archive | 6 | 27/08/2010 05:06 PM |
| [HELP] sscanf2.0 | dcmd_crash | Help Archive | 6 | 17/06/2010 06:36 PM |
| Issue with sscanf2 and subcommands | dcmd_crash | Help Archive | 1 | 13/05/2010 02:58 PM |