SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 17/06/2020, 04:35 PM   #1
OLucassBR
Little Clucker
 
Join Date: Apr 2020
Posts: 5
Reputation: 0
Default error 076: syntax error in the expression, or invalid function call

Opa, estou fazendo um sistema de admin, e fiz o comando de ban e agora vou fazer pra aparecer quando a pessoa logar que ela foi banida porém da esse erro aqui:
PHP Code:
C:\Users\Administrator\Desktop\Sistema Vip\gamemodes\gamemode.pwn(366) : error 076syntax error in the expression, or invalid function call 
O code é esse aqui:
PHP Code:
if(DOF2_GetInt(GetBan(playerid), "Banido") == 1){
    
SendClientMessage(playerid, -1,"{FFFFFF}Admin responsavel pelo banimento:%s\nMotivo: %s"DOF2_GetString(GetBan"Admin"), DOF2_GetString(GetBan"Motivo"));
    
Kick(playerid);
    } 
Por favor me ajudem
OLucassBR is offline   Reply With Quote
Old 17/06/2020, 04:38 PM   #2
ThiagoiHarDz
Banned
 
Join Date: May 2020
Location: Macarani-BA
Posts: 101
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

A linha do erro é qual? A do SendClientMessage ou da DOF2_GetInt?
ThiagoiHarDz is offline   Reply With Quote
Old 17/06/2020, 04:39 PM   #3
OLucassBR
Little Clucker
 
Join Date: Apr 2020
Posts: 5
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

Quote:
Originally Posted by ThiagoiHarDz View Post
A linha do erro é qual? A do SendClientMessage ou da DOF2_GetInt?
A do SendClientMessage
OLucassBR is offline   Reply With Quote
Old 17/06/2020, 04:42 PM   #4
ThiagoiHarDz
Banned
 
Join Date: May 2020
Location: Macarani-BA
Posts: 101
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

O erro está aki

PHP Code:
DOF2_GetString(GetBan"Admin"), DOF2_GetString(GetBan"Motivo")); 
Veja se você definiu Motivo e Admin ou se você definiu o GetBan
ThiagoiHarDz is offline   Reply With Quote
Old 17/06/2020, 04:44 PM   #5
OLucassBR
Little Clucker
 
Join Date: Apr 2020
Posts: 5
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

Quote:
Originally Posted by ThiagoiHarDz View Post
O erro está aki

PHP Code:
DOF2_GetString(GetBan"Admin"), DOF2_GetString(GetBan"Motivo")); 
Veja se você definiu Motivo e Admin ou se você definiu o GetBan
O GetBan eu defini, como assim definir o Motivo e o Admin?
OLucassBR is offline   Reply With Quote
Old 17/06/2020, 04:45 PM   #6
JoaoGhost
Big Clucker
 
JoaoGhost's Avatar
 
Join Date: Sep 2018
Location: Brazil
Posts: 107
Reputation: 3
Default Re: error 076: syntax error in the expression, or invalid function call

o sendclientmessage tbm está errado, ele não formatou.

PHP Code:
new str[30];
format(strsizeof(str), "{FFFFFF}Admin responsavel pelo banimento:%s\nMotivo: %s"DOF2_GetString(GetBan"Admin"), DOF2_GetString(GetBan"Motivo"));
SendClientMessage(playerid, -1str); 
JoaoGhost is offline   Reply With Quote
Old 17/06/2020, 04:50 PM   #7
ThiagoiHarDz
Banned
 
Join Date: May 2020
Location: Macarani-BA
Posts: 101
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

Defini a string pra a include buscar nos arquivos quem deu o ban e o motivo porque se não é definida ela da ero ou pode até compilar mas vai bugar e não irá mostrar qm deu o ban e o motivo
ThiagoiHarDz is offline   Reply With Quote
Old 17/06/2020, 04:53 PM   #8
OLucassBR
Little Clucker
 
Join Date: Apr 2020
Posts: 5
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

Quote:
Originally Posted by ThiagoiHarDz View Post
Defini a string pra a include buscar nos arquivos quem deu o ban e o motivo porque se não é definida ela da ero ou pode até compilar mas vai bugar e não irá mostrar qm deu o ban e o motivo
Pra mim definir ela seria assim?
PHP Code:
new AdminMotivo;
Admin DOF2_GetString(GetBan"Admin")
Motivo DOF2_GetString(GetBan"Motivo"
Seria isso?
OLucassBR is offline   Reply With Quote
Old 17/06/2020, 04:56 PM   #9
ThiagoiHarDz
Banned
 
Join Date: May 2020
Location: Macarani-BA
Posts: 101
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

Cria uma stock de carregar e salvar e tenta
ThiagoiHarDz is offline   Reply With Quote
Old 17/06/2020, 04:58 PM   #10
OLucassBR
Little Clucker
 
Join Date: Apr 2020
Posts: 5
Reputation: 0
Default Re: error 076: syntax error in the expression, or invalid function call

Quote:
Originally Posted by ThiagoiHarDz View Post
Cria uma stock de carregar e salvar e tenta
Então pq no caso essa stock tem na minha Gm e no meu sistema de admin, fiz esse sistema ai na GM pra ele verificar antes da tela de login, pq se eu colocar isso no FS ele vai ignorar esse if ai.
OLucassBR 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
Error 76: Syntax error in the expression, or invalid function call ImTouchk Scripting Help 9 20/04/2019 01:58 PM
Error 076: syntax error in the expression, or invalid function call. nezo2001 Scripting Help 1 11/06/2015 12:11 AM
Help (119) : error 076: syntax error in the expression, or invalid function call Guest123 Scripting Help 2 13/06/2013 10:54 AM
[Ajuda] KillTimer dando erro... (error 076: syntax error in the expression, or invalid function call) Dragonborn Português/Portuguese 2 09/09/2012 04:07 AM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM


All times are GMT. The time now is 05:52 AM.


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