19.12.2015, 15:09
i have this command but given me 1 warning.can you fix it?
Код:
#include <a_samp> #define COLOR_RED 0xFF0000AA new ForbiddenWeapons[][] = { 38, 35, 36 }; public OnPlayerUpdate(playerid) { new pName[MAX_PLAYER_NAME], w = 0, string[128]; if(GetPlayerMoney(playerid) > pMoney[playerid]){ GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "* %s has been banned: MONEY CHEAT", pName); SendClientMessageToAll(COLOR_RED, string); BanEx(playerid, "Money Cheat"); } while(w < (sizeof(ForbiddenWeapons))){ if(GetPlayerWeapon(playerid) == w){ GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "* %s has been banned: WEAPON CHEAT", pName); SendClientMessageToAll(COLOR_RED, string); BanEx(playerid, "Weapon Cheat"); } } return 1; }
Код:
C:\Users\Aref\Desktop\Aref\sampserver\pawno\CODv2.pwn(1871) : warning 203: symbol is never used: "ForbiddenWeapons"