global message errors
#1

trying to make a clientmessage but im getting 2 type miss match errors cant figure it out, im sure it is something simple

should be

/g hi

== Tanker305:hi ==
pawn Код:
C:\Documents and Settings\Mark\Desktop\SA-MP .3a Server\gamemodes\desertwindbase.pwn(273) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Mark\Desktop\SA-MP .3a Server\gamemodes\desertwindbase.pwn(279) : error 035: argument type mismatch (argument 1)
pawn Код:
if(!strcmp(cmdtext, "/g", true, 3))
  {
  if(cmdtext[2] == 0)
    {
     SendClientMessage(playerid, COLOR_G, "USAGE: /(g)lobal <message>"); // error
     return 1;
    }
    new str[128];
        GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "== %s:%s ==", str, cmdtext[3]);
        SendClientMessageToAll(COLOR_G, str); // error
    return 1;
}
return 0;
Reply


Messages In This Thread
global message errors - by [LCG]TANKER - 19.11.2009, 21:45
Re: global message errors - by Calix - 19.11.2009, 22:00
Re: global message errors - by [LCG]TANKER - 19.11.2009, 22:05
Re: global message errors - by Kyosaur - 19.11.2009, 22:08
Re: global message errors - by LarzI - 19.11.2009, 22:11
Re: global message errors - by [LCG]TANKER - 19.11.2009, 22:16
Re: global message errors - by yom - 19.11.2009, 22:26
Re: global message errors - by LarzI - 20.11.2009, 05:33
Re: global message errors - by [LCG]TANKER - 20.11.2009, 17:06

Forum Jump:


Users browsing this thread: 6 Guest(s)