error 017: undefined symbol "text" warning 215: expression has no effect error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line
format(string,sizeof string,"[OOC] %s: %s",pName, text[5]);
Thank you for your help and your used time... :P
new text[128];
format(string,sizeof string,"[OOC] %s: %s",pName, text);
|
if(!strcmp(cmdtext,"/l",true)) //If the text starts with a '$', it'll send OOC. { new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, sizeof pName); format(string,sizeof string,"[OOC] %s: %s",pName, text[5]); SendClientMessageToAll(0x0000ffff,string); return 1; } |
if(!strcmp(cmdtext,"/l",true)) //If the text starts with a '$', it'll send OOC.
{
new pName[MAX_PLAYER_NAME], string[128], text[64];
GetPlayerName(playerid, pName, sizeof pName);
format(string,sizeof string,"[OOC] %s: %s",pName, text);
SendClientMessageToAll(0x0000ffff,string);
return 1;
}
I will do that
if(!strcmp(cmdtext,"/l",true)) //If the text starts with a '$', it'll send OOC.
{
if(strlen(cmdtext) < 4) return SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /l [Text]");
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof pName);
format(string,sizeof string,"[OOC] %s: %s",pName, cmdtext[3]);
SendClientMessageToAll(0x0000ffff,string);
return 1;
}
All working now fine
Remeking commands
and failed by the question
about zcmd.. Now I'm remeking