SA-MP Forums Archive
help with /me <zcmd> - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with /me <zcmd> (/showthread.php?tid=258228)



help with /me <zcmd> - Artix - 29.05.2011

Код:
CMD:me(playerid, params[])
{
    if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
    new str[128];
    GetPlayerName(playerid, str, sizeof(str));
    format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
    SendClientMessageToAll(0xFFFF00AA, str);
    return 1;
}
problems are this

Код:
C:\Users\Daniel\Desktop\server\gamemodes\danrick.pwn(852) : error 017: undefined symbol "cmdtext"
C:\Users\Daniel\Desktop\server\gamemodes\danrick.pwn(852) : warning 215: expression has no effect
C:\Users\Daniel\Desktop\server\gamemodes\danrick.pwn(852) : error 001: expected token: ";", but found "]"
C:\Users\Daniel\Desktop\server\gamemodes\danrick.pwn(852) : error 029: invalid expression, assumed zero
C:\Users\Daniel\Desktop\server\gamemodes\danrick.pwn(852) : fatal error 107: too many error messages on one line



Re: help with /me <zcmd> - Famalamalam - 29.05.2011

cmdtext? You are using ZCMD, use the "params" instead. :P