[HELP] Command /multar does not show the fine reason
#1

Hello good day
When I type the command /motivo [id ] [reason] does not show the reason for the penalty to the player. Can anyone help ?
Quote:

if(strcmp(cmd, "/multar", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Marinha || dini_Int(file, "Profissao") == Terrestre || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Guarda || IsPlayerAdmin(playerid))
{
new plid;
new quant;
new mot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "* /multar [id] [quantidade] [motivo]");
return 1;
}
mot = strval(tmp);
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade][motivo]");
return 1;
}
quant = strval(tmp);
if(quant > 1000 || quant <= 0) {
SendClientMessage(playerid, Vermelho, "| ERRO | Valor de 0 б 1000R$.");
return 1;
}
if(IsPlayerConnected(plid)) {
if( GetPVarInt( playerid, "TempoMultar" ) > GetTickCount() ) return SendClientMessage( playerid, 0xFF0000AA, "| ERRO | Vocк sу pode multar a cada 1 minuto." );
SetPVarInt( playerid, "TempoMultar", GetTickCount() + 60000 );
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, pname);
format(string, sizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s", quant, aname, mot);
SendClientMessage(plid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, "| INFO | Multa aplicada com sucesso.");
new crg[256];
format(crg, sizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s ", aname, pname, quant, mot);
Corregedor(0xC0C0C0AA,crg,1);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quant);
GivePlayerGrana(playerid, quant);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "* O jogador nгo estб conectado!");
return 1;
}
}
}

Reply
#2

Код:
if(strcmp(cmd, "/multar", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Marinha || dini_Int(file, "Profissao") == Terrestre || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Guarda || IsPlayerAdmin(playerid))
{
new plid;
new quant;
new mot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "* /multar [id] [quantidade] [motivo]");
return 1;
}
mot = strval(tmp);
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade][motivo]");
return 1;
}
quant = strval(tmp);
if(quant > 1000 || quant <= 0) {
SendClientMessage(playerid, Vermelho, "| ERRO | Valor de 0 б 1000R$.");
return 1;
}
if(IsPlayerConnected(plid)) {
if( GetPVarInt( playerid, "TempoMultar" ) > GetTickCount() ) return SendClientMessage( playerid, 0xFF0000AA, "| ERRO | Vocк sу pode multar a cada 1 minuto." );
SetPVarInt( playerid, "TempoMultar", GetTickCount() + 60000 );
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, pname);
format(string, sizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s", quant, aname, mot);
SendClientMessage(plid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, "| INFO | Multa aplicada com sucesso.");
new crg[256];
format(crg, sizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s ", aname, pname, quant, mot);
Corregedor(0xC0C0C0AA,crg,1);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quant);
GivePlayerGrana(playerid, quant);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "* O jogador nгo estб conectado!");
return 1;
}
}
}
Reply
#3

if(strcmp(cmd, "/multar", true) == 0)
{
SendClientMessage, color, "INFO your text!");
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Marinha || dini_Int(file, "Profissao") == Terrestre || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Guarda || IsPlayerAdmin(playerid))
{
new plid;
new quant;
new mot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "* /multar [id] [quantidade] [motivo]");
return 1;
}
mot = strval(tmp);
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade][motivo]");
return 1;
}
quant = strval(tmp);
if(quant > 1000 || quant <= 0) {
SendClientMessage(playerid, Vermelho, "| ERRO | Valor de 0 б 1000R$.");
return 1;
}
if(IsPlayerConnected(plid)) {
if( GetPVarInt( playerid, "TempoMultar" ) > GetTickCount() ) return SendClientMessage( playerid, 0xFF0000AA, "| ERRO | Vocк sу pode multar a cada 1 minuto." );
SetPVarInt( playerid, "TempoMultar", GetTickCount() + 60000 );
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, pname);
format(string, sizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s", quant, aname, mot);
SendClientMessage(plid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, "| INFO | Multa aplicada com sucesso.");
new crg[256];
format(crg, sizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s ", aname, pname, quant, mot);
Corregedor(0xC0C0C0AA,crg,1);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quant);
GivePlayerGrana(playerid, quant);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "* O jogador nгo estб conectado!");
return 1;
}
}
}
Reply
#4

Quote:
Originally Posted by Dejan12345
Посмотреть сообщение
if(strcmp(cmd, "/multar", true) == 0)
{
SendClientMessage, color, "INFO your text!");
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Marinha || dini_Int(file, "Profissao") == Terrestre || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Guarda || IsPlayerAdmin(playerid))
{
new plid;
new quant;
new mot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "* /multar [id] [quantidade] [motivo]");
return 1;
}
mot = strval(tmp);
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade][motivo]");
return 1;
}
quant = strval(tmp);
if(quant > 1000 || quant <= 0) {
SendClientMessage(playerid, Vermelho, "| ERRO | Valor de 0 б 1000R$.");
return 1;
}
if(IsPlayerConnected(plid)) {
if( GetPVarInt( playerid, "TempoMultar" ) > GetTickCount() ) return SendClientMessage( playerid, 0xFF0000AA, "| ERRO | Vocк sу pode multar a cada 1 minuto." );
SetPVarInt( playerid, "TempoMultar", GetTickCount() + 60000 );
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, pname);
format(string, sizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s", quant, aname, mot);
SendClientMessage(plid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, "| INFO | Multa aplicada com sucesso.");
new crg[256];
format(crg, sizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s ", aname, pname, quant, mot);
Corregedor(0xC0C0C0AA,crg,1);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quant);
GivePlayerGrana(playerid, quant);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "* O jogador nгo estб conectado!");
return 1;
}
}
}
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(15162) : error 076: syntax error in the expression, or invalid function call
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(15162) : error 029: invalid expression, assumed zero
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(15162) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#5

if(strcmp(cmd, "/multar", true) == 0)
{
SendClientMessage, 0xB1ED0CFF, "Type your text!");
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Marinha || dini_Int(file, "Profissao") == Terrestre || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Guarda || IsPlayerAdmin(playerid))
{
new plid;
new quant;
new mot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "* /multar [id] [quantidade] [motivo]");
return 1;
}
mot = strval(tmp);
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade][motivo]");
return 1;
}
quant = strval(tmp);
if(quant > 1000 || quant <= 0) {
SendClientMessage(playerid, Vermelho, "| ERRO | Valor de 0 б 1000R$.");
return 1;
}
if(IsPlayerConnected(plid)) {
if( GetPVarInt( playerid, "TempoMultar" ) > GetTickCount() ) return SendClientMessage( playerid, 0xFF0000AA, "| ERRO | Vocк sу pode multar a cada 1 minuto." );
SetPVarInt( playerid, "TempoMultar", GetTickCount() + 60000 );
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, pname);
format(string, sizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s", quant, aname, mot);
SendClientMessage(plid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, "| INFO | Multa aplicada com sucesso.");
new crg[256];
format(crg, sizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s ", aname, pname, quant, mot);
Corregedor(0xC0C0C0AA,crg,1);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quant);
GivePlayerGrana(playerid, quant);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "* O jogador nгo estб conectado!");
return 1;
}
Reply
#6

Quote:
Originally Posted by Dejan12345
Посмотреть сообщение
if(strcmp(cmd, "/multar", true) == 0)
{
SendClientMessage, 0xB1ED0CFF, "Type your text!");
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(dini_Int(file, "Profissao") == Policial_C || dini_Int(file, "Profissao") == Policial_F || dini_Int(file, "Profissao") == Marinha || dini_Int(file, "Profissao") == Terrestre || dini_Int(file, "Profissao") == Bope || dini_Int(file, "Profissao") == Swat || dini_Int(file, "Profissao") == Rotam || dini_Int(file, "Profissao") == Policial_M || dini_Int(file, "Profissao") == FBI || dini_Int(file, "Profissao") == Interpol || dini_Int(file, "Profissao") == Guarda || IsPlayerAdmin(playerid))
{
new plid;
new quant;
new mot;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "* /multar [id] [quantidade] [motivo]");
return 1;
}
mot = strval(tmp);
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "/multar [id] [quantidade][motivo]");
return 1;
}
quant = strval(tmp);
if(quant > 1000 || quant <= 0) {
SendClientMessage(playerid, Vermelho, "| ERRO | Valor de 0 б 1000R$.");
return 1;
}
if(IsPlayerConnected(plid)) {
if( GetPVarInt( playerid, "TempoMultar" ) > GetTickCount() ) return SendClientMessage( playerid, 0xFF0000AA, "| ERRO | Vocк sу pode multar a cada 1 minuto." );
SetPVarInt( playerid, "TempoMultar", GetTickCount() + 60000 );
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, pname);
format(string, sizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s", quant, aname, mot);
SendClientMessage(plid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, "| INFO | Multa aplicada com sucesso.");
new crg[256];
format(crg, sizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s ", aname, pname, quant, mot);
Corregedor(0xC0C0C0AA,crg,1);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")- quant);
GivePlayerGrana(playerid, quant);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "* O jogador nгo estб conectado!");
return 1;
}
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(1512) : error 004: function "UpdateTime" is not implemented
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2180) : error 017: undefined symbol "ResetPlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2203) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2211) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2307) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2307) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2353) : error 017: undefined symbol "GetPlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(235 : error 017: undefined symbol "GetPlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2370) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2404) : error 004: function "Logarprof" is not implemented
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2603) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(260 : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(262 : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2630) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(263 : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2639) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2640) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2641) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(264 : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2656) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2666) : error 017: undefined symbol "GetPlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(266 : error 017: undefined symbol "GivePlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2669) : error 017: undefined symbol "filene"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2670) : error 017: undefined symbol "filene"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2682) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(268 : error 017: undefined symbol "GetPlayerGrana"

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


26 Errors.
Reply
#7

go to the top and say #define GetPlayerGrana and all this when say Undefined simbol
Reply
#8

Errors still remain.

Код:
//defines 
#define ADMIN_SPEC_TYPE_NONE 0
#define ADMIN_SPEC_TYPE_PLAYER 1
#define ADMIN_SPEC_TYPE_VEHICLE 2
#define MAX_IDLE_TIME 5
#define GetPlayerGrana
Код:
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(1513) : error 004: function "UpdateTime" is not implemented
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2181) : error 017: undefined symbol "ResetPlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2204) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2212) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2308) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2308) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2371) : error 017: undefined symbol "PlayerName"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2405) : error 004: function "Logarprof" is not implemented
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2604) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2609) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2629) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2631) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2639) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2640) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2641) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2642) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2649) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2657) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2667) : error 017: undefined symbol "filene"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2669) : error 017: undefined symbol "GivePlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2670) : error 017: undefined symbol "filene"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2671) : error 017: undefined symbol "filene"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2683) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2692) : error 017: undefined symbol "GivePlayerGrana"
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2702) : error 079: inconsistent return types (array & non-array)
C:\Users\Gabriel\Desktop\Project Fatality\gamemodes\GMSDS.pwn(2734) : error 079: inconsistent return types (array & non-array)

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


26 Errors.
Reply
#9

My code looks like this:
PHP код:
if(strcmp(cmd"/multar"true) == 0)
{
    new 
aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridanameMAX_PLAYER_NAME);
    
format(filesizeof(file), P_CONTASaname);
    if(
dini_Int(file"Profissao") == Policial_C || dini_Int(file"Profissao") == Policial_F || dini_Int(file"Profissao") == Marinha || dini_Int(file"Profissao") == Terrestre || dini_Int(file"Profissao") == Bope || dini_Int(file"Profissao") == Swat || dini_Int(file"Profissao") == Rotam || dini_Int(file"Profissao") == Policial_M || dini_Int(file"Profissao") == FBI || dini_Int(file"Profissao") == Interpol || dini_Int(file"Profissao") == Guarda || IsPlayerAdmin(playerid))
  {
        new 
plid;
        new 
quant;
        new 
mot;
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) {
            
SendClientMessage(playeridVermelho"* /multar [id] [quantidade] [motivo]");
            return 
1;
        }
        
mot strval(tmp);
        
plid strval(tmp);
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) {
            
SendClientMessage(playeridVermelho"/multar [id] [quantidade][motivo]");
            return 
1;
        }
        
quant strval(tmp);
        if(
quant 1000 || quant <= 0) {
            
SendClientMessage(playeridVermelho"| ERRO | Valor de 0 б 1000R$.");
            return 
1;
        }
        if(
IsPlayerConnected(plid)) {
            if( 
GetPVarIntplayerid"TempoMultar" ) > GetTickCount() ) return SendClientMessageplayerid0xFF0000AA"| ERRO | Vocк sу pode multar a cada 1 minuto." );
            
SetPVarIntplayerid"TempoMultar"GetTickCount() + 60000 );
            new 
pname[MAX_PLAYER_NAME];
            
GetPlayerName(plidpnameMAX_PLAYER_NAME);
            
format(filesizeof(file), P_CONTASpname);
            
format(stringsizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s"quantanamemot);
            
SendClientMessage(plidCOLOR_GREENstring);
            
SendClientMessage(playeridCOLOR_GREEN"| INFO | Multa aplicada com sucesso.");
            new 
crg[256];
            
format(crgsizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s "anamepnamequantmot);
            
Corregedor(0xC0C0C0AA,crg,1);
            
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")- quant);
            
GivePlayerGrana(playeridquant);
            return 
1;
        }
        else {
            
SendClientMessage(playeridVermelho"* O jogador nгo estб conectado!");
            return 
1;
        }
    }

Reply
#10

My code looks like this:
PHP код:
if(strcmp(cmd"/multar"true) == 0)
{
    new 
aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridanameMAX_PLAYER_NAME);
    
format(filesizeof(file), P_CONTASaname);
    if(
dini_Int(file"Profissao") == Policial_C || dini_Int(file"Profissao") == Policial_F || dini_Int(file"Profissao") == Marinha || dini_Int(file"Profissao") == Terrestre || dini_Int(file"Profissao") == Bope || dini_Int(file"Profissao") == Swat || dini_Int(file"Profissao") == Rotam || dini_Int(file"Profissao") == Policial_M || dini_Int(file"Profissao") == FBI || dini_Int(file"Profissao") == Interpol || dini_Int(file"Profissao") == Guarda || IsPlayerAdmin(playerid))
  {
        new 
plid;
        new 
quant;
        new 
mot;
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) {
            
SendClientMessage(playeridVermelho"* /multar [id] [quantidade] [motivo]");
            return 
1;
        }
        
mot strval(tmp);
        
plid strval(tmp);
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) {
            
SendClientMessage(playeridVermelho"/multar [id] [quantidade][motivo]");
            return 
1;
        }
        
quant strval(tmp);
        if(
quant 1000 || quant <= 0) {
            
SendClientMessage(playeridVermelho"| ERRO | Valor de 0 б 1000R$.");
            return 
1;
        }
        if(
IsPlayerConnected(plid)) {
            if( 
GetPVarIntplayerid"TempoMultar" ) > GetTickCount() ) return SendClientMessageplayerid0xFF0000AA"| ERRO | Vocк sу pode multar a cada 1 minuto." );
            
SetPVarIntplayerid"TempoMultar"GetTickCount() + 60000 );
            new 
pname[MAX_PLAYER_NAME];
            
GetPlayerName(plidpnameMAX_PLAYER_NAME);
            
format(filesizeof(file), P_CONTASpname);
            
format(stringsizeof(string), "| INFO | Vocк recebeu uma multa de '%dR$'. Por '%s'. Motivo: %s"quantanamemot);
            
SendClientMessage(plidCOLOR_GREENstring);
            
SendClientMessage(playeridCOLOR_GREEN"| INFO | Multa aplicada com sucesso.");
            new 
crg[256];
            
format(crgsizeof(crg), "| Policial | O(a) policial '%s' multou o jogador '%s'. Quantia: %dR$. Motivo: %s "anamepnamequantmot);
            
Corregedor(0xC0C0C0AA,crg,1);
            
dini_IntSet(file"SaldoBancario"dini_Int(file"SaldoBancario")- quant);
            
GivePlayerGrana(playeridquant);
            return 
1;
        }
        else {
            
SendClientMessage(playeridVermelho"* O jogador nгo estб conectado!");
            return 
1;
        }
    }

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)