Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
Title.
How can I make a emotion command when you type for example:
* davelord is sexy.
[playername] is sexy will become on the player's head that typed it
Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
What command progresser does it use?
Posts: 398
Threads: 11
Joined: Nov 2010
Reputation:
0
I'm using zcmd and sscanf.
Its faster than strcmp
Posts: 398
Threads: 11
Joined: Nov 2010
Reputation:
0
do you have included zcmd?
Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
It says I didnt define it..
Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
../pawno/include/zcmd.inc(62) : warning 235: public function lacks forward declaration (symbol "OnGameModeInit")
../pawno/include/zcmd.inc(64) : error 017: undefined symbol "funcidx"
../pawno/include/zcmd.inc(64) : warning 215: expression has no effect
../pawno/include/zcmd.inc(64) : error 001: expected token: ";", but found ")"
../pawno/include/zcmd.inc(64) : error 029: invalid expression, assumed zero
../pawno/include/zcmd.inc(64) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
Those. C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(222) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(222) : error 017: undefined symbol "cmd_me"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(222) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(222) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Man, fuck this shit, give me your empty gamemode where it works please.
Posts: 398
Threads: 11
Joined: Nov 2010
Reputation:
0
Okey where you puting this command?
Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
public OnPlayerCommandText(playerid, cmdtext[])
{
COMMAND:me(playerid, params[] )
{
new
Name[ MAX_PLAYER_NAME ],
String[ 128 ],
Text[ 70 ]
;
GetPlayerName( playerid,Name,MAX_PLAYER_NAME );
if( sscanf( params,"s[70]",Text ) ) return SendClientMessage( playerid,-1,"Usage /me text" );
format( String,sizeof( String ),"* %s %s",Name,Text );
SetPlayerChatBubble( playerid,String,-1,100.0,10000 );
return true;
}
return 1;
}
Posts: 1,739
Threads: 53
Joined: Oct 2010
Reputation:
0
Including zcmd with dcmd doesn't work and will not mix. Experiment with it if you don't believe me. A simple fix is to get your command converted to strcmp/dcmd, or just remove the #include <dcmd> and all of the DCMD commands.
EDIT: ZCMD commands DO NOT WORK UNDER ONPLAYERCOMMANDTEXT!
Posts: 398
Threads: 11
Joined: Nov 2010
Reputation:
0
Ech damn bro.
Put command at the end of script but not in the callback.
Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
When I placed it out the callback I got those.
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(221) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(235) : error 010: invalid function or declaration
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(237) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(237) : warning 203: symbol is never used: "IsNumeric"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(237) : warning 203: symbol is never used: "ReturnUser"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(237) : warning 203: symbol is never used: "gTeam"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Posts: 350
Threads: 115
Joined: Aug 2010
Reputation:
0
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(221) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(235) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(235) : warning 203: symbol is never used: "IsNumeric"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(235) : warning 203: symbol is never used: "ReturnUser"
C:\Users\Mijn pc\Desktop\NYC\gamemodes\LOCALCHAT.pwn(235) : warning 203: symbol is never used: "gTeam"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I removed the last:
return1:. and I only got one error left.