20.08.2015, 20:31
Hey
I got an error and i dont know how to fix it.
May someone help me please?
the error:I got an error and i dont know how to fix it.
May someone help me please?
Код:
error 035: argument type mismatch (argument 1)
Код:
public CwEnd(status) { if(status == 0) { SendClientMessageToAll(Orange, ".омзоъ дчмарйн беимд аеиеоийъ тм йгй дотшлъ тчб зесш ддщъифеъ щм дчмарйн"); CwOn = 0,CwPlayers = 0,KillTimer(CwWinnerCheck),CwStarted = 0; for(new i;i<GetMaxPlayers();i++)if(IsPlayerConnected(i))InCw[i] = 0; return 1; } else if(status == 1) { new playername[MAX_PLAYER_NAME]; new clanfile[80]; GetPlayerName(CwWinner, playername, sizeof(playername)); LACY_ResetWeapons(CwWinner); SetPlayerInterior(CwWinner, 0); DOF2_SetInt(clanfile, "Cw", DOF2_GetInt(clanfile, "Cw") +1); FAC_GivePlayerMoney(CwWinner,CwReward); format(str, sizeof(str), "{FFFFFF}» {FF0000}%d$ {FFFF00}:рйцз бомзоъ дчмарйн едчмап жлд б {FFFFFF}%s {FFFF00}одчмап {FFFFFF}%s", CwReward,DOF2_GetString(PlayerFile(playername), "Clan"),playername); SendClientMessageToAll(0x00B2EEFF, str); for(new i;i<GetMaxPlayers();i++)if(IsPlayerConnected(i))InCw[i] = 0; CwOn = 0,CwPlayers = 0,CwStarted = 0; KillTimer(CwWinnerCheck); return 1; } else if(status == 2) { CwPlayers = 0; CwStarted = 0; CwOn = 0; KillTimer(CwWinnerCheck); for(new i;i<GetMaxPlayers();i++){ if(IsPlayerConnected(i)){ return InCw[i] = 0; }} } return 1; }
Код:
format(str, sizeof(str), "{FFFFFF}» {FF0000}%d$ {FFFF00}:рйцз бомзоъ дчмарйн едчмап жлд б {FFFFFF}%s {FFFF00}одчмап {FFFFFF}%s", CwReward,DOF2_GetString(PlayerFile(playername), "Clan"),playername); SendClientMessageToAll(0x00B2EEFF, str);