09.12.2016, 21:57
ajuda esse erro
Erro na include sscanf2 linha 271
tentando compilar Sistema de vip
Код:
C:\Users\FELIPE\Desktop\ScavengeSurvive\pawno\include\sscanf2.inc(258) : warning 202: number of arguments does not match definition C:\Users\FELIPE\Desktop\ScavengeSurvive\pawno\include\sscanf2.inc(271) : error 025: function heading differs from prototype Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
#define Float_EXTRN:%0##%1,%2|||%3|||%4,%5) EXTRY:%0##%1f,%2,%3|||%4|||%5)
Код:
#include <a_samp> #include <DOF2> #include <zcmd> #include <sscanf2> //------- Cores ------- #define Verde 0x00FF00FF #define Vermelho 0xFF0000AA #define Azul 0x0000FFAA #define Marron 0x804000AA #define Branco 0xFFFFFFAA #define Laranja 0xFF8000AA #define Azul_Marinho 0x80FFFFAA #define Cinza 0xC0C0C0AA #define Rosa 0xFF80FFAA #define AZUL_CLARO 0x80BFFFAA #define Verde_Escuro 0x007138AA #define Amarelo 0xFFFF00AA #define Roxo 0x9F009FAA #define VERDE_AGUA 0x03D687FF #define CINZA_ESCURO 0x626262FF #define VERDE 0x21DD00FF #define VERMELHO_CLARO 0xFB0000FF #define VERDE_CLARO 0x38FF06FF #define ROSA_CHOQUE 0xE100E1FF #define VERDE_ESCURO 0x008040FF #define CINZA_ESCURO 0x626262FF #define Radios 100 #define FILTERSCRIPT enum Informacoes { Vip, Skin } new ID; new Player[MAX_PLAYERS][Informacoes]; new NivelVip[50]; new String[150]; //------ #if defined FILTERSCRIPT public OnFilterScriptExit() { print("\n--------------------------------------"); print(" Sistema de vip desligado."); print("--------------------------------------\n"); return 1; } #else main() { print("Sistema de vip:Bruno Alves"); } #endif public OnPlayerConnect(playerid) { new arquivo[40], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, 32); format(arquivo, 40, "VIPS/%s.ini", name); { for(new i = 0; i < MAX_PLAYERS; i++) { GameTextForPlayer(i, String,1000,1); } } if(DOF2_FileExists(arquivo)) { Player[playerid][Vip] = DOF2_GetInt(arquivo, "Vip"); } else { DOF2_CreateFile(arquivo); } return 1; } public OnPlayerDisconnect(playerid) { SalvarContas(playerid); return 1; } public OnGameModeExit() { DOF2_Exit(); return 1; } //------------COMANDOS VIPS LEVEL 1--------------- CMD:cmdsvip(playerid, params[]) { new Ajuda[1500]; if(Player[playerid][Vip] == 0) return SendClientMessage(playerid, Branco, "Vocк precisa ser VIP para usar este comando!\n\n"); strcat(Ajuda, "{FFFFFF}Comandos Vip Ouro\n{FFFF00}/cc /AnVip /Saveskin /Cskin - /GodCar - /Asay\n\n"); strcat(Ajuda, "{FFFFFF}Comandos Vip Prata\n{CDC9C9}/JetPack - /GodVip - /HqVip - /DarSpawn - /SkinVip - /Radio\n\n"); strcat(Ajuda, "{FFFFFF}Comandos Vip Bronze\n{DAA520}V - /PortaoVip - /HqVip - /Reparar - /Kitvip - /MeuTempo"); ShowPlayerDialog(playerid, 555, DIALOG_STYLE_MSGBOX, "VIPS - Ajuda", Ajuda, "Fechar", ""); return 1; } CMD:v(playerid, params[]) { new Texto[128]; if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, -1, "Vocк precisa ser Vip para usar este comando!"); if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, Cinza, "Use /v [texto]"), SendClientMessage(playerid, -1, "Use o comando para mandar mensagens para os Vips online"); if(Player[playerid][Vip] == 1) NivelVip = "{DAA520}Vip-Bronze"; if(Player[playerid][Vip] == 2) NivelVip = "{CDC9C9}Vip-Prata"; if(Player[playerid][Vip] == 3) NivelVip = "{FFFF00}Vip-Ouro"; format(String, sizeof(String), "(*XAT-VIP*)%s %s: %s", NivelVip, Nome(playerid), Texto); for(new i = 0; i < MAX_PLAYERS; i++) { if(Player[i][Vip] > 0) { SendClientMessage(i, -1, String); } } return 1; } CMD:kitvip(playerid) { if((Player[playerid][Vip] < 1) && (Player[playerid][Vip] == 0)) return SendClientMessage(playerid, Branco, "Vocк nгo й [Vip/Socio] ou nгo tem level suficiente!"); GivePlayerWeapon(playerid, 26, 500); return 1; } //-----COMANDOS VIP LEVEL 2 ----- CMD:skinvip(playerid, params[]) { new skin; if(Player[playerid][Vip] < 2) return SendClientMessage(playerid, Branco, "Vocк nгo й Vip ou nгo tem level suficiente!"); if(sscanf(params, "d", skin)) return SendClientMessage(playerid, Branco, "[BTK] Use /Trocar [id]"); if(skin < 0 || skin > 299) return SendClientMessage(playerid, -1, "ERRO: Skins sгo de 0 a 299"); SendClientMessage(playerid, AZUL_CLARO,"Skin trocado com sucesso!"); SetPlayerSkin(playerid, skin); return 1; } CMD:radio(playerid) { if((Player[playerid][Vip] < 3) && (Player[playerid][Vip] == 0)) return SendClientMessage(playerid, Branco, "Vocк nгo й [Vip/Socio] ou nгo tem level suficiente!"); ShowPlayerDialog(playerid, Radios, DIALOG_STYLE_LIST, "Brasil Top Killers", "{ADFF2F} Funk Brasil \n{CAE1FF}Jovem Pan\n{7B68EE}Radio Atlantida\nRadio Cidade FM\n{6A5ACD}Radio Mantiquera\n{32CD32}Click Mix\nWeb Radio Virtual Dj\n{F900E0}Radio Vto Mix\nRadio Team Expert\nWeb Radio Relax\nRadio Novo Milenio\n{FFFFFF}Desligar Radio", "Sintonizar", "Sair"); return 1; } //----------COMANODS VIP LEVEL 3 ------ CMD:anvip(playerid, params[]) { new Texto[200]; if(Player[playerid][Vip] < 3) return SendClientMessage(playerid, Branco, "Vocк nгo й Vip ou nгo tem level suficiente!"); if(sscanf(params, "s[200]", Texto)) return SendClientMessage(playerid, Vermelho, "Erro: /Anvip [Texto]"); format(String, sizeof(String), "{4682B4}<<ANUNCIO VIP DE %s >>{B0C4DE}** %s **",Nome(playerid), Texto); SendClientMessageToAll(Azul, String); return 1; } CMD:saveskin(playerid) { if((Player[playerid][Vip] < 3)) return SendClientMessage(playerid, Branco, "Vocк nгo й [Vip/Socio] ou nгo tem level suficiente!"); SendClientMessage(playerid, VERDE_AGUA, "Skin salvo para carregalo use /cskin!"); DOF2_SetInt(Contas(playerid), "Skin", GetPlayerSkin(playerid)); return 1; } CMD:cskin(playerid) { if((Player[playerid][Vip] < 3)) return SendClientMessage(playerid, Branco, "Vocк nгo й [Vip/Socio] ou nгo tem level suficiente!"); SendClientMessage(playerid, VERDE_AGUA, "Skin carregado com sucesso!"); new arquivo[40], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, 32); format(arquivo, 40, "VIPS/%s.ini", name); SetPlayerSkin(playerid, DOF2_GetInt(arquivo, "Skin")); return 1; } //------OUTROS COMANDOS DO SISTEMA---- CMD:darvip(playerid, params[]) { new Level; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cinza, "Logue-se na Rcon para usar este comando."); if(sscanf(params, "ui", ID, Level)) return SendClientMessage(playerid, -1, "Use /darvip [ID] [level]"), SendClientMessage(playerid, -1, "Use o comando para dar vip a algun jogador"); if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido"); format(String, sizeof(String), "O Admin %s deu vip level %d a %s",Nome(playerid), Level, Nome(ID)); SendClientMessageToAll(Verde, String); if(Level > 3) return SendClientMessage(playerid, -1, "ERRO: Leveis de 3 para baixo"); Player[ID][Vip] = Level; return 1; } CMD:tirarvip(playerid, params[]) { if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Branco, "Use /TirarVip [ID]"); if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Branco, "[ERRO] ID invalido"); if(Player[ID][Vip] == 0) return SendClientMessage(playerid, Branco, "Este player nгo й VIP."); format(String, sizeof(String), "O Admin %s tirou o vip de %s",Nome(playerid), Nome(ID)); SendClientMessageToAll(Vermelho, String); Player[ID][Vip] = 0; return 1; } CMD:vips(playerid) { new IsVip; SendClientMessage(playerid, VERDE_CLARO, "Vips Online:"); for(new i = 0; i < MAX_PLAYERS; ++i) { if(Player[i][Vip]) { format(String, sizeof(String), "%s", Nome(i)); SendClientMessage(playerid, Branco, String); IsVip++; } } if(IsVip == 0) { SendClientMessage(playerid, Cinza, "Nenhum VIP online."); } IsVip = 0; return 1; } CMD:souvip(playerid) { if(Player[playerid][Vip] < 1) return SendClientMessage(playerid, -1, "Vocк precisa ser Vip para usar este comando!"); if(Player[playerid][Vip] == 0) NivelVip = "{FFFFFF}0"; if(Player[playerid][Vip] == 1) NivelVip = "{DAA520}Vip-Bronze"; if(Player[playerid][Vip] == 2) NivelVip = "{CDC9C9}Vip-Prata"; if(Player[playerid][Vip] == 3) NivelVip = "{FFFF00}Vip-Ouro"; format(String, sizeof(String), "Vocк й level vip:%s", NivelVip, Player[playerid][Vip]); SendClientMessage(playerid, -1, String); return 1; } //---------------------------------------- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid ==Radios) { if(response) { if(listitem == 0) { SendClientMessage(playerid, Amarelo, "Radio Funk Brasil Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Funk Brasil Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://70.36.100.78:10452/"); return 1; } if(listitem == 1) { SendClientMessage(playerid, Amarelo, "Radio Jovem Pan Sintonizada"); GameTextForPlayer(playerid,"~y~Radio Jovem Pan Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://64.15.147.220:8042/"); return 1; } if(listitem == 2) { SendClientMessage(playerid, Amarelo, "Radio Atlantida Sintonizada"); GameTextForPlayer(playerid,"~Y~Radio Atlantida Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://189.76.158.143:50002/"); return 1; } if(listitem == 3) { SendClientMessage(playerid, Amarelo, "Radio Cidade FM Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Cidade Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://75.126.5.125:8226/"); return 1; } if(listitem == 4) { SendClientMessage(playerid, Amarelo, "Radio Mantiquera Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Mantiquera Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://184.154.37.136:8081/"); return 1; } if(listitem == 5) { SendClientMessage(playerid, Amarelo, "Radio Click mix Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Click Mix Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://50.30.33.114:9998"); return 1; } if(listitem == 6) { SendClientMessage(playerid, Amarelo, "Radio Virtual Dj Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Virtual Dj Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://173.212.197.233:7800"); return 1; } if(listitem == 7) { SendClientMessage(playerid, Amarelo, "Radio Vto Mix Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Vto Mix Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://s3.voscast.com:7554/"); return 1; } if(listitem == 8) { SendClientMessage(playerid, Amarelo, "Radio Team Expert Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Team Expert Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://64.31.30.91:9980"); return 1; } if(listitem == 9) { SendClientMessage(playerid, Amarelo, "Radio Relax Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Relax Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://streaming18.brlogic.com:8204/live"); return 1; } if(listitem == 10) { SendClientMessage(playerid, Amarelo, "Radio Novo Milenio Sintonizada"); GameTextForPlayer(playerid,"~w~Radio Novo Milenio Sintonizada",5000,3); PlayAudioStreamForPlayer(playerid, "http://174.142.79.66:8110"); return 1; } if(listitem == 11) { GameTextForPlayer(playerid,"~w~Radio Desligada Com Sucesso!",5000,3); StopAudioStreamForPlayer(playerid); } } } return 1; } stock Contas(playerid) { new arquivo[40], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, 32); format(arquivo, 40, "VIPS/%s.ini", name); return arquivo; } stock SalvarContas(playerid) { if(!DOF2_FileExists(Contas(playerid))) DOF2_CreateFile(Contas(playerid)); else { DOF2_SetInt(Contas(playerid), "Vip", Player[playerid][Vip]); DOF2_SaveFile(); } return 1; } stock Nome(playerid) { new pNome[MAX_PLAYER_NAME]; GetPlayerName(playerid, pNome, 24); return pNome; }