[Ajuda] uns 26 Errors.
#1

Код:
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1746) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1749) : error 021: symbol already defined: "strins"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1757) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1760) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1762) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1766) : error 021: symbol already defined: "GetPlayerName"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1776) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1780) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1783) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1785) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1787) : error 021: symbol already defined: "var0"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1788) : error 021: symbol already defined: "var1"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1800) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1804) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1807) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1809) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1811) : error 021: symbol already defined: "var0"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1812) : error 021: symbol already defined: "var1"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1823) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1827) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1830) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1832) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1834) : error 021: symbol already defined: "var0"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1835) : error 021: symbol already defined: "var1"
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1847) : error 010: invalid function or declaration
C:\Users\Matheus-PC\Desktop\[Gamemode] Gaming Fox Brasil ® (0.3x)\gamemodes\GFB.pwn(1851) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

PHP код:
//============ KITS DAS ARMAS =======================////
if(strcmp(cmdtext,"/kits",true)==0){
{
    new 
kits[1000];
    
strins(kits,"{FF4500}/kit1 : {FFD700}Faca, 9mm, Escopeta, Mp5, Tec9.[Valor $1000]\n",strlen(kits));
    
strins(kits,"{FF4500}/kit2 : {FFD700}Bastao, 9mm+Silenciador , Sawnoff, McSMG, Granada.[Valor $2500]\n",strlen(kits));
    
strins(kits,"{FF4500}/kit3 : {FFD700}MotoSerra, Deagle, Sawnoff, MP5.[Valor $3000]\n",strlen(kits));
    
strins(kits,"{FF4500}/kit4 : {FFD700}Katana, Deagle, Escopeta de Combate, MP5, AK47.[Valor $5000]\n",strlen(kits));
    
strins(kits,"{FF4500}/kit5 : {FFD700}Sniper, Deagle, Escopeta de Combate, Tec9, M4, Granada.[Valor $8000]\n",strlen(kits));
    
strins(kits,"\n",strlen(kits));
    
strins(kits,"{DAA520}BOM JOGO!!\n",strlen(kits));
    
ShowPlayerDialog(playerid,8439DIALOG_STYLE_MSGBOX"{F60000}• KITS DE ARMAS DO SERVIDOR •",kits"Fechar""");
    return 
1;
}
if(
strcmp(cmdtext,"/kit1",true)==0){
{
    if(
GetPlayerMoney(playerid) >= 1000) {
        
GivePlayerMoney(playerid, -1000);
        new 
var0[265];
        new 
var1[30];
        
GetPlayerName(playeridvar130);
        
format(var0265"%s Comprou Um Kit De Armas 1! Comando: {FFFF00}( /kit1 )"var1);
        
SendClientMessageToAll(Cinza_Escurovar0);
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid41);
        
GivePlayerWeapon(playerid2245);
        
GivePlayerWeapon(playerid2530);
        
GivePlayerWeapon(playerid29100);
        
PlayerPlaySound(playerid10520.00.00.0);
    }
    else {
        
SendClientMessage(playeridVerde_Floresta"[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente");
        
PlayerPlaySound(playerid10530.00.00.0);
    }
    return 
1;
}
if(
strcmp(cmdtext,"/kit2",true)==0){
{
    if(
GetPlayerMoney(playerid) >= 2500) {
        
GivePlayerMoney(playerid, -2500);
        new 
var0[265];
        new 
var1[30];
        
GetPlayerName(playeridvar130);
        
format(var0265"%s Comprou Um Kit De Armas 2! Comando: {FFFF00}( /kit2 )"var1);
        
SendClientMessageToAll(Verde_Limгovar0);
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid51);
        
GivePlayerWeapon(playerid2360);
        
GivePlayerWeapon(playerid2650);
        
GivePlayerWeapon(playerid28200);
        
GivePlayerWeapon(playerid1615);
        
PlayerPlaySound(playerid10520.00.00.0);
    }
    else {
        
SendClientMessage(playeridVerde_Floresta"[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente");
        
PlayerPlaySound(playerid10530.00.00.0);
    }
    return 
1;
}
if(
strcmp(cmdtext,"/kit3",true)==0){
{
    if(
GetPlayerMoney(playerid) >= 3500) {
        
GivePlayerMoney(playerid, -3500);
        new 
var0[265];
        new 
var1[30];
        
GetPlayerName(playeridvar130);
        
format(var0265"%s Comprou Um Kit De Armas 3! Comando: {FFFF00}( /kit3 )"var1);
        
SendClientMessageToAll(Rosavar0);
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid999999);
        
GivePlayerWeapon(playerid2460);
        
GivePlayerWeapon(playerid2680);
        
GivePlayerWeapon(playerid32350);
        
PlayerPlaySound(playerid10520.00.00.0);
    }
    else {
        
SendClientMessage(playeridVerde_Floresta"[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente");
        
PlayerPlaySound(playerid10530.00.00.0);
    }
    return 
1;
}
if(
strcmp(cmdtext,"/kit4",true)==0){
{
    if(
GetPlayerMoney(playerid) >= 5000) {
        
GivePlayerMoney(playerid, -5000);
        new 
var0[265];
        new 
var1[30];
        
GetPlayerName(playeridvar130);
        
format(var0265"%s Comprou Um Kit De Armas 4! Comando: {FFFF00}( /kit4 )"var1);
        
SendClientMessageToAll(Azul_Clarovar0);
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid81);
        
GivePlayerWeapon(playerid24100);
        
GivePlayerWeapon(playerid2780);
        
GivePlayerWeapon(playerid29420);
        
GivePlayerWeapon(playerid30300);
        
PlayerPlaySound(playerid10520.00.00.0);
    }
    else {
        
SendClientMessage(playeridVerde_Floresta"[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente");
        
PlayerPlaySound(playerid10530.00.00.0);
    }
    return 
1;
}
if(
strcmp(cmdtext,"/kit5",true)==0){
{
    if(
GetPlayerMoney(playerid) >= 8000) {
        
GivePlayerMoney(playerid, -8000);
        new 
var0[265];
        new 
var1[30];
        
GetPlayerName(playeridvar130);
        
format(var0265"%s Comprou Um Kit De Armas 5! Comando: {FFFF00}( /kit5 )"var1);
        
SendClientMessageToAll(Roxo_Escurovar0);
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid3499999);
        
GivePlayerWeapon(playerid2499999);
        
GivePlayerWeapon(playerid2799999);
        
GivePlayerWeapon(playerid3299999);
        
GivePlayerWeapon(playerid3199999);
        
GivePlayerWeapon(playerid1699999);
        
PlayerPlaySound(playerid10520.00.00.0);
    }
    else {
        
SendClientMessage(playeridVerde_Floresta"[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente");
        
PlayerPlaySound(playerid10530.00.00.0);
    }
    return 
1;

acho que й o var1, var0.. essa nem sei :/ me ajuda ai ?
Reply
#2

Possivelmente faltou fechar uma chave.

http://tabulador.medianewsonline.com/

Faзa bom proveito.
Reply
#3

Encontrei!
Код:
if(strcmp(cmdtext,"/kit5",true)==0){ 
{ 
    if(GetPlayerMoney(playerid) >= 8000) { 
        GivePlayerMoney(playerid, -8000); 
        new var0[265]; 
        new var1[30]; 
        GetPlayerName(playerid, var1, 30); 
        format(var0, 265, "%s Comprou Um Kit De Armas 5! Comando: {FFFF00}( /kit5 )", var1); 
        SendClientMessageToAll(Roxo_Escuro, var0); 
        ResetPlayerWeapons(playerid); 
        GivePlayerWeapon(playerid, 34, 99999); 
        GivePlayerWeapon(playerid, 24, 99999); 
        GivePlayerWeapon(playerid, 27, 99999); 
        GivePlayerWeapon(playerid, 32, 99999); 
        GivePlayerWeapon(playerid, 31, 99999); 
        GivePlayerWeapon(playerid, 16, 99999); 
        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); 
    } 
    else { 
        SendClientMessage(playerid, Verde_Floresta, "[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente"); 
        PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0); 
    } 
    return 1; 
}
Troque por esse (ou tire a chave que esta la):
Код:
if(strcmp(cmdtext,"/kit5",true)==0)
{ 
    if(GetPlayerMoney(playerid) >= 8000) { 
        GivePlayerMoney(playerid, -8000); 
        new var0[265]; 
        new var1[30]; 
        GetPlayerName(playerid, var1, 30); 
        format(var0, 265, "%s Comprou Um Kit De Armas 5! Comando: {FFFF00}( /kit5 )", var1); 
        SendClientMessageToAll(Roxo_Escuro, var0); 
        ResetPlayerWeapons(playerid); 
        GivePlayerWeapon(playerid, 34, 99999); 
        GivePlayerWeapon(playerid, 24, 99999); 
        GivePlayerWeapon(playerid, 27, 99999); 
        GivePlayerWeapon(playerid, 32, 99999); 
        GivePlayerWeapon(playerid, 31, 99999); 
        GivePlayerWeapon(playerid, 16, 99999); 
        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); 
    } 
    else { 
        SendClientMessage(playerid, Verde_Floresta, "[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente"); 
        PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0); 
    } 
    return 1; 
}
Reply
#4

Quote:
Originally Posted by Bruno13
Посмотреть сообщение
Encontrei!
Код:
if(strcmp(cmdtext,"/kit5",true)==0){ 
{ 
    if(GetPlayerMoney(playerid) >= 8000) { 
        GivePlayerMoney(playerid, -8000); 
        new var0[265]; 
        new var1[30]; 
        GetPlayerName(playerid, var1, 30); 
        format(var0, 265, "%s Comprou Um Kit De Armas 5! Comando: {FFFF00}( /kit5 )", var1); 
        SendClientMessageToAll(Roxo_Escuro, var0); 
        ResetPlayerWeapons(playerid); 
        GivePlayerWeapon(playerid, 34, 99999); 
        GivePlayerWeapon(playerid, 24, 99999); 
        GivePlayerWeapon(playerid, 27, 99999); 
        GivePlayerWeapon(playerid, 32, 99999); 
        GivePlayerWeapon(playerid, 31, 99999); 
        GivePlayerWeapon(playerid, 16, 99999); 
        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); 
    } 
    else { 
        SendClientMessage(playerid, Verde_Floresta, "[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente"); 
        PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0); 
    } 
    return 1; 
}
Troque por esse (ou tire a chave que esta la):
Код:
if(strcmp(cmdtext,"/kit5",true)==0)
{ 
    if(GetPlayerMoney(playerid) >= 8000) { 
        GivePlayerMoney(playerid, -8000); 
        new var0[265]; 
        new var1[30]; 
        GetPlayerName(playerid, var1, 30); 
        format(var0, 265, "%s Comprou Um Kit De Armas 5! Comando: {FFFF00}( /kit5 )", var1); 
        SendClientMessageToAll(Roxo_Escuro, var0); 
        ResetPlayerWeapons(playerid); 
        GivePlayerWeapon(playerid, 34, 99999); 
        GivePlayerWeapon(playerid, 24, 99999); 
        GivePlayerWeapon(playerid, 27, 99999); 
        GivePlayerWeapon(playerid, 32, 99999); 
        GivePlayerWeapon(playerid, 31, 99999); 
        GivePlayerWeapon(playerid, 16, 99999); 
        PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); 
    } 
    else { 
        SendClientMessage(playerid, Verde_Floresta, "[INFO]: {FF0000}Vocк nгo tem dinheiro suficiente"); 
        PlayerPlaySound(playerid, 1053, 0.0, 0.0, 0.0); 
    } 
    return 1; 
}
+rep?
haha porra vlw ganhou +rep
Reply
#5

Quote:
Originally Posted by MatheusMendes
Посмотреть сообщение
haha porra vlw ganhou +rep
precisa n
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)