06.09.2009, 13:14
pawn Код:
if(strcmp(cmd, "/testcodes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /testcodes [number] 3-19 21 22");
return 1;
}
format(string, sizeof(string), "%s", result);
PlayCrimeReportForPlayer(playerid,playerid,string); // Line 22696
//printf("%s", string);
}
return 1;
}
(22696) : error 035: argument type mismatch (argument 3)
Whats the problem here?
I just want to check the codes