[AJUDA] Erro na compilaзгo.
#1

Bom quando compilo com a versгo Antiga 3C somente contem um warning:

Erro:

Quote:

C:\Users\Kewin\Desktop\BPH 1.0\GM PH1\gamemodes\bph.pwn(11949) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664

Code Completo:

Quote:

{
DeleteClosestStrip(playerid);
Player[playerid][pCorrente] = 0;
RemoveCorrente(playerid);
}
}

Linha:

Quote:

DeleteClosestStrip(playerid);

__________________________________________________ ____________________________________________

Atй ai Ok , porйm eu passo os Plugins , Includes e Filters para a nova versгo 3d e quando compilo os erros sгo diferentes :

Quote:

C:\Users\Kewin\Desktop\samp03dsvr_R2_win32\gamemod es\bph.pwn(26890) : error 017: undefined symbol "frename"
C:\Users\Kewin\Desktop\samp03dsvr_R2_win32\gamemod es\bph.pwn(26899) : error 017: undefined symbol "frename"
C:\Users\Kewin\Desktop\samp03dsvr_R2_win32\gamemod es\bph.pwn(48729) : warning 203: symbol is never used: "encode_tires"
C:\Users\Kewin\Desktop\samp03dsvr_R2_win32\gamemod es\bph.pwn(48729) : warning 203: symbol is never used: "laserInfo"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.


Nгo contйm nada nas linhas dos warnings a nгo ser um "}" e as outras linhas sгo:


Quote:

{
new vehicleid = GetOwnedVehicleID(giveid);
format(VeiculoNome[vehicleid], MAX_PLAYER_NAME, tmp2);
format(vOwner[vehicleid], MAX_PLAYER_NAME, tmp2);
new newcarro[256];
format(newcarro,256,"/RPG/carros/%s.ini",tmp2);
frename(oldcarro, newcarro);
}

format(thestring,128,"-OperServ- Vocк renomeou a conta '%s' para '%s'.", tmp, tmp2);
SendClientMessage(playerid, COLOR_YELLOW, thestring);
format(thestring,128,"%s renomeou a conta '%s' para '%s'.", ReturnPlayer(playerid), tmp, tmp2);
WriteLog("Admins2", thestring);
GivePlayerGP(giveid,-100000);
OnPlayerSave(giveid);
frename(oldfile, file);
SetPlayerName(giveid, tmp2);
format(Player[giveid][pName],MAX_PLAYER_NAME,tmp2);
if(Player[giveid][pMember] > 0)
{


Linha 1:


Quote:

frename(oldcarro, newcarro);

Linha 2 :

Quote:

frename(oldfile, file);

Reply
#2

Apaga essas coisa apaga a linha

pawn Код:
{
new vehicleid = GetOwnedVehicleID(giveid);
format(VeiculoNome[vehicleid], MAX_PLAYER_NAME, tmp2);
format(vOwner[vehicleid], MAX_PLAYER_NAME, tmp2);
new newcarro[128];
format(newcarro,256,"/RPG/carros/%s.ini",tmp2);
}

format(thestring,128,"-OperServ- Vocк renomeou a conta '%s' para '%s'.", tmp, tmp2);
SendClientMessage(playerid, COLOR_YELLOW, thestring);
format(thestring,128,"%s renomeou a conta '%s' para '%s'.", ReturnPlayer(playerid), tmp, tmp2);
WriteLog("Admins2", thestring);
GivePlayerGP(giveid,-100000);
OnPlayerSave(giveid);
SetPlayerName(giveid, tmp2);
format(Player[giveid][pName],MAX_PLAYER_NAME,tmp2);
if(Player[giveid][pMember] > 0)
{
Se der alguma coisa avise ....
Reply
#3

Apуs apagar ocorreu esse erro:

Quote:

C:\Users\Kewin\Desktop\BPH 1.0\GM PH1\gamemodes\bph.pwn(26885) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Kewin\Desktop\BPH 1.0\GM PH1\gamemodes\bph.pwn(26885) : error 017: undefined symbol "org"
C:\Users\Kewin\Desktop\BPH 1.0\GM PH1\gamemodes\bph.pwn(26885) : warning 215: expression has no effect
C:\Users\Kewin\Desktop\BPH 1.0\GM PH1\gamemodes\bph.pwn(26885) : error 001: expected token: ";", but found "]"
C:\Users\Kewin\Desktop\BPH 1.0\GM PH1\gamemodes\bph.pwn(26885) : fatal error 107: too many error messages on one line

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


4 Errors.

Reply
#4

Quote:

C:\Users\Kewin\Desktop\BPH 1.0\GM PH1\gamemodes\bph.pwn(26885) : error 017: undefined symbol "org"

So criar o simbolo "org" =)
Reply
#5

Como assim ? O_o


__________________________________________________ ______________

Aguardando resposta do Laercio.
Reply
#6

Poste as linhas do erro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)