Sscanf Issue.
#1

Hello,

I have an issue with this code:

pawn Код:
CMD:help(playerid, params[])
{
    if(!strlen(params)) return SendClientMessage(playerid, red, "Usage: /help [question>");
    new name[24], string[128];
    GetPlayerName(playerid, name, 24);
    format(string, sizeof string, "[HELP] %s[%i]: %s [/respond %i]",name,playerid,params,playerid);
    CallRemoteFunction("SendClientMessageToAdmins","isi",0xFF0000,string,1);
    SendClientMessage(playerid, red, "Message Sent, Please wait.");
    return 1;
}
CMD:respond(playerid, params[])
{
    new id, name[24], string[128];
    GetPlayerName(playerid, name, 24);
    if(sscanf(params, "u", id)) return SendClientMessage(playerid, red, "Usage: /respond [ID]");
    format(string, sizeof string, "{FF00EA} {0000FF} %s {FFFFFF} will help you {FFCC00} to fix {FFAF00} your issue, {FF00EA}He will PM you soon.",name);
    SendClientMessage(id, red, string);
    return 1;
}
I basically want this:

Alex_Obando has used the command: /help I think the admin gate is bugged.
[HELP] Alex_Obando[0]: I think the admin gate is bugged. [/respond 0]

Admin has typed /respond 0.

Alex_Obando Gets the message:
"{FF00EA} {0000FF} %s {FFFFFF} will help you {FFCC00} to fix {FFAF00} your issue, {FF00EA}He will PM you soon."

Admin says: Hehe, Lets try to annoy people.
Admin Typed /respond 23
Admin gets the message:
"You cannot send respond messages since anyone has asked for help.

I want that, Please help me.


Btw, How to fix this, When the VIP player is in the car and he does /rve It doesnt remove the car.
pawn Код:
CMD:rve(playerid, params[])
{
    if(dini_Int(PFile(playerid),"VipMember")<1)return SendClientMessage(playerid, red, "You must be VIP level 1 to use this command!");
    {
         DestroyVehicle(playerid);
         SendClientMessage(playerid, green, "Thank you!");
    }

    return 1;
}
Reply
#2

AnyOne?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)