13.02.2015, 11:58
Hello, i made dynamic point system, but getting some warnings what did i placed from
LINE: 25670
LINE: 21816
LINE:4439 and 4455
Warning code
LINE: 25670
Код:
if(IsAtDynamicPoint(playerid)) switch(PlayerInfo[playerid][pDonateRank]) {
Код:
if(!IsAtDynamicPoint(playerid)) { if(playerid == giveplayerid) { SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot deliver yourself to the hospital!"); return 1; }
Код:
CMD:buyinsurance(playerid, params[]) { if(!IsAtDynamicPoint(playerid) && PlayerInfo[playerid][pVW] == 2) { if (GetPlayerCash(playerid) >= 4000) { if (PlayerInfo[playerid][pInsurance] != 1) { GivePlayerCash(playerid, -4000); PlayerInfo[playerid][pInsurance] = 1; SendClientMessageEx(playerid, COLOR_WHITE, " Insurance purchased, you paid $1,500 + a one-time transfer fee of $2,500, you will now be healed at County General Hospital for $1,500."); return 1; } else { SendClientMessageEx(playerid, COLOR_GRAD4, "You already have insurance at County General Hospital!"); } } else { SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have enough money for this insurance!"); } } else if(!IsAtDynamicPoint(playerid) && PlayerInfo[playerid][pVW] == 1) { if (GetPlayerCash(playerid) >= 4000) { if (PlayerInfo[playerid][pInsurance] != 2) { GivePlayerCash(playerid, -4000); PlayerInfo[playerid][pInsurance] = 2; SendClientMessageEx(playerid, COLOR_WHITE, " Insurance purchased, you paid $1,500 + a one-time transfer fee of $2,500, you will now be healed at All Saints Hospital for $1,500."); return 1; } else { SendClientMessageEx(playerid, COLOR_GRAD4, "You already have insurance at All Saints Hospital!"); } } else { SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have enough money for this insurance!"); } }
Код:
(4439) : warning 202: number of arguments does not match definition (4455) : warning 202: number of arguments does not match definition (21816) : warning 202: number of arguments does not match definition (25670) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings.