SA-MP Forums Archive
Must be indexed - 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)
+--- Thread: Must be indexed (/showthread.php?tid=363814)



Must be indexed - Dan. - 28.07.2012

Under OnPlayerEnterDynamicCP:
pawn Код:
//
        new string[128];
        if(IsPlayerInDynamicArea(playerid, BigEarZone))
        {
            format(string, sizeof(string), "%s", GetPlayerGangColor(playerid));
            GangZoneFlashForAll(BigEarZone, string); // ERROR
        }
Error:
pawn Код:
error 035: argument type mismatch (argument 2)



Re: Must be indexed - FireCat - 28.07.2012

There second parameter can only be used by Hexadecimal codes (Integers)
pawn Код:
GangZoneFlashForAll(BigEarZone, GetPlayerGangColor(playerid));