05.08.2016, 11:51
I got that one fixed already. I got another problem now.
Код:
../gamemodes/Build.pwn(14270) : error 025: function heading differs from prototype ../gamemodes/Build.pwn(14271) : error 021: symbol already defined: "split" ../gamemodes/Commands.pwn(15628) : error 017: undefined symbol "Streamer_GetTickRate" ../gamemodes/Commands.pwn(15629) : error 017: undefined symbol "Streamer_SetTickRate" ../gamemodes/Commands.pwn(15650) : error 017: undefined symbol "Streamer_GetMaxItems" ../gamemodes/Commands.pwn(15651) : error 017: undefined symbol "Streamer_SetMaxItems" ../gamemodes/Commands.pwn(15672) : error 017: undefined symbol "Streamer_GetVisibleItems" ../gamemodes/Commands.pwn(15673) : error 017: undefined symbol "Streamer_SetVisibleItems" ../gamemodes/Commands.pwn(15695) : error 017: undefined symbol "Streamer_GetRadiusMultiplier" ../gamemodes/Commands.pwn(15697) : error 017: undefined symbol "Streamer_SetRadiusMultiplier" ../gamemodes/Commands.pwn(15709) : error 017: undefined symbol "Streamer_IsToggleCameraUpdate" ../gamemodes/Commands.pwn(15712) : error 017: undefined symbol "Streamer_ToggleCameraUpdate" ../gamemodes/Commands.pwn(15717) : error 017: undefined symbol "Streamer_ToggleCameraUpdate" ../gamemodes/Commands.pwn(15726) : error 017: undefined symbol "Streamer_IsToggleIdleUpdate" ../gamemodes/OnGameMode.pwn(565) : error 017: undefined symbol "TryMe" ../gamemodes/OnGameMode.pwn(590) : error 017: undefined symbol "Streamer_SetCellDistance" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
Build.pwn Line(s) 14270-14285 stock split(const strsrc[], strdest[][], delimiter = '|') { new i, li, aNum, len, srclen = strlen(strsrc); while(i <= srclen) { if (strsrc[i] == delimiter || i == srclen) { len = strmid(strdest[aNum], strsrc, li, i, 128); strdest[aNum][len] = 0; li = i + 1; aNum++; } i++; } return 1; }
Код:
Commands.pwn Line(s) 15628-15726 new old_tick_rate = Streamer_GetTickRate(); Streamer_SetTickRate(tick_rate); new string[128]; format(string, sizeof(string), "Streamer tick rate has been set from %i to %i.", old_tick_rate, tick_rate); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } //============================================// COMMAND:streamermaxitems(playerid, params[]) { if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command."); new type, max_items; if(sscanf(params, "ii", type, max_items)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamermaxitems [type] [max items]"); SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP"); SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area"); return 1; } new old_max_items = Streamer_GetMaxItems(type); Streamer_SetMaxItems(type, max_items); new string[128]; format(string, sizeof(string), "Streamer maximum items have been set from %i to %i.", old_max_items, max_items); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } //============================================// COMMAND:streamervisibleitems(playerid, params[]) { if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command."); new type, visible_items; if(sscanf(params, "ii", type, visible_items)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamervisibleitems [type] [max visibl items]"); SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP"); SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area"); return 1; } new old_visible_items = Streamer_GetVisibleItems(type); Streamer_SetVisibleItems(type, visible_items); new string[128]; format(string, sizeof(string), "Streamer maximum visible items have been set from %i to %i.", old_visible_items, visible_items); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } //============================================// COMMAND:streamerradius(playerid, params[]) { if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command."); new type, radius; if(sscanf(params, "if", type, radius)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /streamerradius [type] [radius]"); SendClientMessage(playerid, COLOR_GREY, "TYPES: 0: Object | 1: Pickup | 2: CP | 3: Race CP"); SendClientMessage(playerid, COLOR_GREY, "TYPES: 4: Map Icon | 5: 3D Text Label | 6: Area"); return 1; } new Float:old_radius; Streamer_GetRadiusMultiplier(type, old_radius); Streamer_SetRadiusMultiplier(type, radius); new string[128]; format(string, sizeof(string), "Streamer radius has been set from %f to %f.", old_radius, radius); SendClientMessage(playerid, COLOR_WHITE, string); return 1; } //============================================// COMMAND:streamercameraupdate(playerid, params[]) { if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command."); if(Streamer_IsToggleCameraUpdate(playerid) == 0) { SendClientMessage(playerid, COLOR_WHITE, "Streamer camera updating has been turned on."); Streamer_ToggleCameraUpdate(playerid, 1); } else { SendClientMessage(playerid, COLOR_WHITE, "Streamer camera updating has been turned off."); Streamer_ToggleCameraUpdate(playerid, 0); } return 1; } //============================================// COMMAND:streameridleupdate(playerid, params[]) { if(GetPVarInt(playerid, "Admin") < 9) return SendClientMessage(playerid, COLOR_GREY, "You do not have access to this command."); if(Streamer_IsToggleIdleUpdate(playerid) == 0)
Код:
OnGameMode.pwnКод:565 TryMe();Код:590 Streamer_SetCellDistance(1000.0);