Sccanf & ZCMD
#1

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.
Reply
#2

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

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.
Reply
#4

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?
Reply
#5

------
Reply
#6

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

------
Reply
#8

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

------
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)