[AJUDA] Erro 010,017, e etc. ajude-me porfavor
#1

Linhas : C:\Users\lucas\Desktop\LUCAS PROJETOS\gta\gamemodes\LVMODIFICADO.pwn(47) : error 010: invalid function or declaration
C:\Users\lucas\Desktop\LUCAS PROJETOS\gta\gamemodes\LVMODIFICADO.pwn(213) : error 017: undefined symbol "PlayerInfo"
C:\Users\lucas\Desktop\LUCAS PROJETOS\gta\gamemodes\LVMODIFICADO.pwn(213) : warning 215: expression has no effect
C:\Users\lucas\Desktop\LUCAS PROJETOS\gta\gamemodes\LVMODIFICADO.pwn(213) : error 001: expected token: ";", but found "]"
C:\Users\lucas\Desktop\LUCAS PROJETOS\gta\gamemodes\LVMODIFICADO.pwn(213) : error 029: invalid expression, assumed zero
C:\Users\lucas\Desktop\LUCAS PROJETOS\gta\gamemodes\LVMODIFICADO.pwn(213) : fatal error 107: too many error messages on one line

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


5 Errors.

Linha : 47 ===> stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Flo at:XMax,Float:YMax )
Linha: 213 ==> if(PlayerInfo[playerid][PMilitar] >= 6)

observe> antes dessas linhas vem :

if(strcmp(cmd, "/convidar", true) == 0)
{
//tmp = strtok(cmdtext, idx);
new PlayerB;
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /convidar [id]");
PlayerB = strval(tmp);
if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб conectado");
if(PlayerInfo[playerid][PMilitar] >= 6)
{
PlayerInfo[PlayerB][PMilitar] = 1;
SendClientMessage(PlayerB, Branco, "Vocк entrou а Polнcia Militar");
SetPlayerColor(PlayerB, Cor_PMilitar);
return 1;
}


e da linha 47 ela fica sozinha , la em cima do Gamemode :

forward MoneyGrubScoreUpdate();
forward Givecashdelaytimer(playerid);
forward SetPlayerRandomSpawn(playerid);
forward SetupPlayerForClassSelection(playerid);
forward GameModeExitFunc();
forward SendPlayerFormattedText(playerid, const str[], define);
forward public SendAllFormattedText(playerid, const str[], define);

Linha 47 tock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Flo at:XMax,Float:YMax )


porfavor ajudem-me .
Reply
#2

pawn Код:
#define  PMilitar 20
new PlayerInfo[MAX_PLAYERS][50];
Reply
#3

Olha sу seu comando:
pawn Код:
if(strcmp(cmd, "/convidar", true) == 0)
{
//tmp = strtok(cmdtext, idx);
new PlayerB;
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /convidar [id]");
PlayerB = strval(tmp);
if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб conectado");
if(PlayerInfo[playerid][PMilitar] >= 6)
{
PlayerInfo[PlayerB][PMilitar] = 1;
SendClientMessage(PlayerB, Branco, "Vocк entrou а Polнcia Militar");
SetPlayerColor(PlayerB, Cor_PMilitar);
return 1;
}
Abriu duas chaves e fechou apenas uma, use:
pawn Код:
if(strcmp(cmd, "/convidar", true) == 0)
{
//tmp = strtok(cmdtext, idx);
new PlayerB;
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /convidar [id]");
PlayerB = strval(tmp);
if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб conectado");
if(PlayerInfo[playerid][PMilitar] >= 6)
{
PlayerInfo[PlayerB][PMilitar] = 1;
SendClientMessage(PlayerB, Branco, "Vocк entrou а Polнcia Militar");
SetPlayerColor(PlayerB, Cor_PMilitar);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)