SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 04/06/2019, 12:57 AM   #1
Anonymous637
Big Clucker
 
Join Date: Jan 2019
Posts: 110
Reputation: 0
Default 4 erros ao compilar gm URGENTE

fui compilar a gm e deu esses erros :

PHP Code:
JMS.pwn(96) : error 017undefined symbol "string"
JMS.pwn(96) : error 017undefined symbol "string"
JMS.pwn(96) : error 029invalid expressionassumed zero
JMS
.pwn(96) : fatal error 107too many error messages on one line 
linha


PHP Code:
format(string,sizeof(string), "{000000}[ROTA] {000000}(%d): %s",playeridtext); 

toda a onplayertext:

PHP Code:
public OnPlayerText(playeridtext[])
{
 
    

    
format(string,sizeof(string), "{000000}[ROTA] {000000}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_PRETO20.010000);
    
    
format(string,sizeof(string), "{00BFFF}[PMSP] {00BFFF}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_AZUL20.010000);
    
    
format(string,sizeof(string), "{04B404}[EB] {04B404}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_VERDE20.010000)
    
    
format(string,sizeof(string), "{D7DF01}[PRF] {D7DF01}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_AMARELO20.010000)

    
format(string,sizeof(string), "{DF7401}[DETRAN] {DF7401}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_LARANJA20.010000)

    
format(string,sizeof(string), "{B40404}[AL QUAEDA] {B40404}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_VERMELHO20.010000)
    
    
format(string,sizeof(string), "{01DF01}[PCC] {01DF01}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_VERDE CLARO20.010000)
    
     
format(string,sizeof(string), "{FF0000}[CV] {FF0000}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_VERMELHO CLARO20.010000)
    
    
format(string,sizeof(string), "{01DF01}[ADA] {01DF01}(%d): %s",playeridtext);
    
SendPlayerMessageToAll(playerid,string);
    
SetPlayerChatBubble(playeridchatCOLOUR_VERDE CLARO20.010000)






return 
0;

    return 
1;

Anonymous637 is offline   Reply With Quote
Old 04/06/2019, 01:10 AM   #2
AgaDoisZero
Guest
 
Posts: n/a
Default Re: 4 erros ao compilar gm URGENTE

Tenta isso aê

Code:
public OnPlayerText(playerid, text[]) 
{ 
    new string[128];
    format(string,sizeof(string), "{000000}[ROTA] {000000}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_PRETO, 20.0, 10000); 
     
    format(string,sizeof(string), "{00BFFF}[PMSP] {00BFFF}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_AZUL, 20.0, 10000); 
     
    format(string,sizeof(string), "{04B404}[EB] {04B404}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_VERDE, 20.0, 10000) 
     
    format(string,sizeof(string), "{D7DF01}[PRF] {D7DF01}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_AMARELO, 20.0, 10000) 

    format(string,sizeof(string), "{DF7401}[DETRAN] {DF7401}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_LARANJA, 20.0, 10000) 

    format(string,sizeof(string), "{B40404}[AL QUAEDA] {B40404}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_VERMELHO, 20.0, 10000) 
     
    format(string,sizeof(string), "{01DF01}[PCC] {01DF01}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_VERDE CLARO, 20.0, 10000) 
     
     format(string,sizeof(string), "{FF0000}[CV] {FF0000}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_VERMELHO CLARO, 20.0, 10000) 
     
    format(string,sizeof(string), "{01DF01}[ADA] {01DF01}(%d): %s",playerid, text); 
    SendPlayerMessageToAll(playerid,string); 
    SetPlayerChatBubble(playerid, chat, COLOUR_VERDE CLARO, 20.0, 10000) 

return 0; 

    return 1; 
}
  Reply With Quote
Old 04/06/2019, 01:19 AM   #3
Anonymous637
Big Clucker
 
Join Date: Jan 2019
Posts: 110
Reputation: 0
Default Re: 4 erros ao compilar gm URGENTE

nao deu
Anonymous637 is offline   Reply With Quote
Old 04/06/2019, 01:24 AM   #4
AgaDoisZero
Guest
 
Posts: n/a
Default Re: 4 erros ao compilar gm URGENTE

deu o que ?
  Reply With Quote
Old 04/06/2019, 03:35 AM   #5
PedroH
Huge Clucker
 
Join Date: Jul 2017
Posts: 337
Reputation: 5
Default Re: 4 erros ao compilar gm URGENTE

Quote:
Originally Posted by Anonymous637 View Post
nao deu
A mensagem não esta sendo enviada pois a callback esta retornando 0. apague-o e deixe apenas o "return 1;"
PedroH is offline   Reply With Quote
Old 04/06/2019, 07:55 PM   #6
Miqueias Barros
Gangsta
 
Miqueias Barros's Avatar
 
Join Date: May 2010
Location: Brazil 🇧🇷
Posts: 725
Reputation: 31
Default Re: 4 erros ao compilar gm URGENTE

Estranho não ter a variável que identifica a organização do player. Esse código aí não vai dar certo não em.
Miqueias Barros is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] ajuda urgente com erros ao compilar Anonymous637 Português/Portuguese 6 07/02/2019 08:40 PM
[Ajuda] urgente pawno parou de compilar 4G4M3N0M Português/Portuguese 2 15/07/2014 11:06 PM
[Ajuda] Ajuda Urgente , Erro ao Compilar LucasFoxY Português/Portuguese 7 21/07/2013 08:26 PM
[Ajuda] Erro ao Compilar [Urgente Please] DrKaFuZo Português/Portuguese 1 05/11/2012 07:22 PM
[ERROS]Erros AO Compilar O Aadmin!!! andersongr98 Português/Portuguese 5 20/07/2010 09:54 PM


All times are GMT. The time now is 05:50 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.