SA-MP Forums Archive
Sccanf & ZCMD - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sccanf & ZCMD (/showthread.php?tid=460875)



Sccanf & ZCMD - Beckett - 30.08.2013

Well today I've just read a sscanf tutorial then I've made something simple after that I compiled, there was no errors at all but when I start the server every single command wont work, and everything wont work, for example I got a bunch of commands, animations, messages, all of them wont appear can anyone help me please?

Код:
CMD:heal(playerid,params[])
{
	new targetid;
	if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,COLOR_RED2,"[SYNTAX]{FFFFFF} /heal [PlayerID]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,COLOR_RED2,"[SYNTAX] {FFFFFF} Invalid ID.");
    SetPlayerHealth(targetid, 100);
    return 1;
}
Thank you in advance!

EDIT: Don't mind the loose indentation It's just because of the BBcodes.


Re: Sccanf & ZCMD - Konstantinos - 30.08.2013

Do not use more than 1 command processor. You need to convert all of your commands to ZCMD.


Re: Sccanf & ZCMD - Beckett - 30.08.2013

All my commands are in ZCMD, I was using strcmp way before but then I re-wrote them to zcmd, at the current moment there's nothing as strcmp in my script.


Re: Sccanf & ZCMD - Konstantinos - 30.08.2013

Make a new file (gamemode)
pawn Код:
#include < a_samp >
#include < zcmd >

main( ) { }

CMD:testme( playerid, params[ ] )
{
    SendClientMessage( playerid, -1, "Command works!" );
    return 1;
}
Unload any other mode and just load that empty gamemode. Does it print the message?


Re: Sccanf & ZCMD - Beckett - 30.08.2013

------


Re: Sccanf & ZCMD - Konstantinos - 30.08.2013

Hmm.
Try to re-update sscanf to the latest version, it might be due to that.


Re: Sccanf & ZCMD - Beckett - 30.08.2013

------


Re: Sccanf & ZCMD - Konstantinos - 30.08.2013

What bug? It should work fine if pInfo[playerid][Pass] "holds" the hashed password.


Re: Sccanf & ZCMD - Beckett - 30.08.2013

------