Mole Help!!!!
#1

hi Guys i am making new mole CMD but i am facing some Errors-
Quote:

error 017: undefined symbol "cmd"
error 017: undefined symbol "sendername"
error 017: undefined symbol "sendername"
error 029: invalid expression, assumed zero
And here is my CMD-

Quote:

CMD:mole(playerid, params[])
if(strcmp(cmd, "/mole", true) == 0 && PlayerInfo[playerid][pAdmin] >= 5)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[96];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mole [text]");
return 1;
}
format(string, sizeof(string), "SMS: %s, Sender: Server (555)",result);
SendClientMessageToAll(COLOR_YELLOW, string);
}
return 1;
}

Anyone can help me in this?
Reply


Messages In This Thread
Mole Help!!!! - by ManIsHere - 16.01.2016, 09:00
Re: Mole Help!!!! - by GTLS - 16.01.2016, 09:08
Re: Mole Help!!!! - by ManIsHere - 16.01.2016, 09:11

Forum Jump:


Users browsing this thread: 1 Guest(s)