[FIXED]Help with my /write command
#1

Код:
CMD:write(playerid,params[])
{
	new pText[128],string[128];
	if(PInfo[playerid][Level] < 4)
        return SendClientMessage(playerid,STEALTH_BLUE,"You need to be level 4 to write messages.");
        if(sscanf(params,pText))
	return SendClientMessage(playerid,STEALTH_BLUE,"USAGE: /write [text]");
	format(string,sizeof(string),"INFO:%s",pText);
	SendClientMessageToAll(COLOR_DARKORCHID,string);
	return 1;
}
When i use it,it shows [INFO]:
Reply
#2

You didn't define a specifier in your sscanf if-statement.

pawn Код:
if(sscanf(params, "s[128]", pText))
Reply
#3

PHP код:
if(sscanf(params,"s[128]",pText)) 
Edit: Late
Reply
#4

Wew thank you both for helping me. D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)