An odd warning
#1

Код:
C:\Documents and Settings\Chris\Desktop\SAMP Server\gamemodes\WorldWar.pwn(286) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Chris\Desktop\SAMP Server\gamemodes\WorldWar.pwn(294) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    if(GetPlayerTeam(killerid) == 1)
    {
        RussiaScore++; //Sets team1score
        new newtext[41];
        GetPlayerScore(playerid, RussiaScore);//this code gives warning
        format(newtext, sizeof(newtext), "BLUE: %d", RussiaScore);
        TextDrawSetString(Text:Textdraw0, newtext);
    }
    if(GetPlayerTeam(killerid) == 2)
    {
        USAScore++; //Sets team2score
        new newtext[41];
        GetPlayerScore(playerid, USAScore);// This code produces warning
        format(newtext, sizeof(newtext), "Red: %d", USAScore);
        TextDrawSetString(Text:Textdraw1, newtext);
    }
    if(RussiaScore == 100 || USAScore == 100)
    {
        SendRconCommand("gmx"); //Restarts Server
    }
    return 1;
}
Reply


Messages In This Thread
An odd warning - by HayZatic - 10.07.2011, 15:54
Re: An odd warning - by jameskmonger - 10.07.2011, 15:59
Re: An odd warning - by Mikkel_Pedersen - 10.07.2011, 16:02
Re: An odd warning - by HayZatic - 10.07.2011, 16:06
Re: An odd warning - by HayZatic - 10.07.2011, 16:15

Forum Jump:


Users browsing this thread: 2 Guest(s)