Simple Scripting
#5

You need to create 2 different strings for that. And i would recommend using sscanf too.
pawn Код:
CMD:dpm(playerid, text[])
{
    new string[128], text1[64], text2[64];
    if(sscanf(params, "s[64]s[64]", text1, text2)) return SendClientMessage(playerid, -1, "USAGE: /dpm [text1] [text2]");
    format(string, sizeof(string), "%s says: %s", text1, text2);
    SendClientMessage(playerid, COLOR_SAY, string);
    return 1;
}
Reply


Messages In This Thread
Simple Scripting - by Shank - 30.01.2015, 18:31
Re: Simple Scripting - by Schneider - 30.01.2015, 18:39
Re: Simple Scripting - by CalvinC - 30.01.2015, 18:40
Re: Simple Scripting - by Shank - 30.01.2015, 18:44
Re: Simple Scripting - by CalvinC - 30.01.2015, 18:49
Re: Simple Scripting - by Shank - 30.01.2015, 19:17
Re: Simple Scripting - by CalvinC - 30.01.2015, 19:25
Re: Simple Scripting - by FunnyBear - 30.01.2015, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)