16.12.2010, 22:09
Hello, i am making a /settalk cmd. And i get a strange error,
this is the command
Thanks, Alex
this is the command
pawn Код:
command(settalk, playerid, params, cmdtext, idx[])
{
if(IsPlayerConnected(playerid))
{
new settalk[128];
settalk = strtok(cmdtext, idx);
if(!strlen(settalk)) {
SendClientMessage(playerid, WHITE, "USAGE: /settalk 1-5");
return 1;
}
else if(strcmp(settalk,"1", true) == 0)
{
settalk1[playerid] = 1;
SendClientMessage(playerid, WHITE, " Chat style has been set!");
}
}
return 1;
}
Код:
error 035: argument type mismatch (argument 1)