SA-MP Forums Archive
PlayCrimeReportForPlayer Bug :/ - 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: PlayCrimeReportForPlayer Bug :/ (/showthread.php?tid=96116)



PlayCrimeReportForPlayer Bug :/ - _Ben_[Fux-c.co.il RP] - 06.09.2009

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




Re: PlayCrimeReportForPlayer Bug :/ - Kalcor - 06.09.2009

Poor coding or not reading the includes/wiki is not a bug.