SA-MP Forums Archive
Arguement Type Mismatch - 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: Arguement Type Mismatch (/showthread.php?tid=200234)



Arguement Type Mismatch - Sledge - 17.12.2010

pawn Код:
if(KillStreak[killerid] == 5)
    {
        for(new i; i < MAX_PLAYERS; i ++)
        {
            if(IsPlayerConnected(i))
            {
                format(string, sizeof(string), "%s is on a killstreak of ~r~5~w~ kills!", name);
                TextDrawSetString(KillStreak, string); //I GET ARGUMENT TYPE MISMTACH HERE
                TextDrawShowForPlayer(i, KillStreakText);
            }
        }
    }
Please tell me why that code that's commented keeps giving me an error. I can't figure it out. I got everything defined.


Re: Arguement Type Mismatch - Retardedwolf - 17.12.2010

pawn Код:
TextDrawSetString ( KillStreakText, string ) ;



Re: Arguement Type Mismatch - Sledge - 17.12.2010

Wtf, lol.... thanks