17.10.2015, 15:45
When i try to compile my script it give me these errors:
Lines:
Код:
D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32189) : warning 204: symbol is assigned a value that is never used: "string" D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : error 017: undefined symbol "family" D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : error 017: undefined symbol "color" D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : error 029: invalid expression, assumed zero D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : fatal error 107: too many error messages on one line
Код:
CMD:setgangcolor(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1337 || PlayerInfo[playerid][pGangModerator] >= 1) { new string[128], family, color[32]; if(sscanf(params, "is", family, color)) { SendClientMessageEx(playerid, COLOR_GRAD1, "USAGE: /setgangcolor [gangID] [hexcolor]"); return 1; } if(family < 1 || family > 10) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Gang ID."); if(strlen(color) > 6) return SendClientMessage(playerid, COLOR_GREY, "Please use hex codes that arent longer then 6 charaters e.g FFFFFF"); family -= 1; if(FamilyInfo[family][FamilyTaken] != 1) { SendClientMessage(playerid, COLOR_GREY, " That gang isn't being used."); return 1; } if(PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, -1, "You must be ( /aduty ) to use this Command!"); return 1; } format(FamilyInfo[family][FamilyBandana], sizeof(color), "%s", color); format(string, sizeof(string), "AdmCmd: %s has set gang ID %d's bandana to '%s'.", GetPlayerNameEx(playerid), family+1, color); ABroadCast(COLOR_LIGHTRED, string, 1); SaveGangs(); } return 1; }