SA-MP Forums Archive
[Ajuda] Como resolver - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Como resolver (/showthread.php?tid=426650)



Como resolver - minimessi10 - 29.03.2013

Como resolvo.

Quote:

C:\Users\Megaware\Documents\BFBC2\• Brasil - Project City RPG [ 0.3x ] ®\gamemodes\GM.pwn(2130) : error 035: argument type mismatch (argument 1)
C:\Users\Megaware\Documents\BFBC2\• Brasil - Project City RPG [ 0.3x ] ®\gamemodes\GM.pwn(2130) : error 020: invalid symbol name ""
C:\Users\Megaware\Documents\BFBC2\• Brasil - Project City RPG [ 0.3x ] ®\gamemodes\GM.pwn(2130) : error 029: invalid expression, assumed zero
C:\Users\Megaware\Documents\BFBC2\• Brasil - Project City RPG [ 0.3x ] ®\gamemodes\GM.pwn(2130) : fatal error 107: too many error messages on one line

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


4 Errors.

Linha 2130

Quote:

format(file, sizeof(file), P_CONTAS, aname);




Re: Como resolver - smiiir - 29.03.2013

Mande a funзгo toda :X


Re: Como resolver - minimessi10 - 29.03.2013

esse ai й o comando.

Quote:

if(strcmp(cmd, "/ir", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), P_CONTAS, aname);
if(IsAdmin[playerid] == 1) {
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "* Use: /ir [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)) {
new interiordele;
interiordele = GetPlayerInterior(plid);
SetPlayerInterior(playerid, interiordele);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(plid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X+1,Y+1,Z);
PutPlayerInVehicle(playerid,VehicleID,0);
}
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[PcAdmin] O administrador %s foi atй a sua posiзгo.", aname);
SendClientMessage(plid,0x0080FFAA, string);
return 1;
}
else {
SendClientMessage(playerid, Vermelho, "| ERRO | ID invбlido");
return 1;
}
}
}




Re: Como resolver - smiiir - 29.03.2013

tenta

PHP код:
if(strcmp(cmd"/ir"true) == 0)
{
    if(
IsAdmin[playerid] == 1
    {
        new 
plid;
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp)) 
        {
            
SendClientMessage(playeridVermelho"* Use: /ir [id]");
            return 
1;
        }
        
plid strval(tmp);
        if(
IsPlayerConnected(plid)) 
        {
            new 
interiordele;
            
interiordele GetPlayerInterior(plid);
            
SetPlayerInterior(playeridinteriordele);
            new 
Float:XFloat:YFloat:Z;
            
GetPlayerPos(plidXYZ);
            
SetPlayerPos(playeridXYZ);
            {
                new 
VehicleID;
                
VehicleID GetPlayerVehicleID(playerid);
                
SetVehiclePos(VehicleID,X+1,Y+1,Z);
                
PutPlayerInVehicle(playerid,VehicleID,0);
            }
            new 
                
pname[MAX_PLAYER_NAME];
            
GetPlayerName(plidpnameMAX_PLAYER_NAME);
            
format(stringsizeof(string), "[PcAdmin] O administrador %s foi atй a sua posiзгo."aname);
            
SendClientMessage(plid,0x0080FFAAstring);
            return 
1;
        }
        else 
        {
            
SendClientMessage(playeridVermelho"| ERRO | ID invбlido");
            return 
1;
        }
    }




Re: Como resolver - minimessi10 - 29.03.2013

funciono oque vc fez ?


Re: Como resolver - smiiir - 29.03.2013

retirei isto

PHP код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), P_CONTASaname); 
Nгo entendi o motivo de estar ali :///


Respuesta: Como resolver - Pedro Pawno - 29.03.2013

Nгo entendi o motivo daquele formato. Faзa o que o Ismir falou caso nгo de certo reposte o erro novamente.