10.07.2011, 15:54
Код:
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; }