[Ajuda] me ajudem por favor ja fiz de tudo
#1

Bom jб fiz de tudo para arrumar os erros й nada ainda

Quote:

C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(2076) : error 025: function heading differs from prototype

C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(13969) : error 025: function heading differs from prototype

C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(19594) : error 035: argument type mismatch (argument 2)

C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(29385) : warning 202: number of arguments does not match definition
C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(29385) : warning 202: number of arguments does not match definition
C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(29395) : warning 213: tag mismatch
C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(29396) : warning 213: tag mismatch

C:\Users\Alexsandre\Desktop\samp03x_svr_R1-2_win32\pawno\BSG.pwn(42616) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Erro linha 2076:

PHP код:
forward OnPlayerLogin(playeridpassword[]); 
Erro linha 13969:

PHP код:
public OnPlayerLogin(playerid ,password[])
{
    new 
tmp2[256];
    new 
string2[64];
    
format(string2sizeof(string2), "Players/%s.ini"PlayerName(playerid));
    
strmid(PlayerInfo[playerid][pKey], dini_Get(string2"Key"), 0strlen(dini_Get(string2"Key")), 255);
    new 
FileUserFile fopen(string2io_read);
    if (
UserFile)
    {
        if(
strcmp(PlayerInfo[playerid][pKey],passwordtrue ) == 0)
        {
                new 
key256 ] , val256 ];
                new 
Data256 ];
                while (
fread(UserFileDatasizeof(Data)))
                {
                    
key ini_GetKeyData );
                    if( 
strcmpkey "Level" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLevel] = strvalval ); }
                    if( 
strcmpkey "AdminLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAdmin] = strvalval ); }
                    if( 
strcmpkey "DonateRank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVIP] = strvalval ); }
                    if( 
strcmpkey "UpgradePoints" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][gPupgrade] = strvalval ); }
                    if( 
strcmpkey "ConnectedTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConnectTime] = strvalval ); }
                    if( 
strcmpkey "Registered" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pReg] = strvalval ); }
                    if( 
strcmpkey "Sex" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSex] = strvalval ); }
                    if( 
strcmpkey "Muted" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMuted] = strvalval ); }
                    if( 
strcmpkey "Respect" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExp] = strvalval ); }
                    if( 
strcmpkey "Money" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCash] = strvalval ); }
                    if( 
strcmpkey "Bank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConta] = strvalval ); }
                    if( 
strcmpkey "Crimes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrimes] = strvalval ); }
                    if( 
strcmpkey "Kills" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pKills] = strvalval ); }
                    if( 
strcmpkey "Deaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDeaths] = strvalval ); }
                    if( 
strcmpkey "Phonebook" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhoneBook] = strvalval ); }
                    if( 
strcmpkey "LottoNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLottoNr] = strvalval ); }
                    if( 
strcmpkey "Fishes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishes] = strvalval ); }
                    if( 
strcmpkey "BiggestFish" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBiggestFish] = strvalval ); }
                    if( 
strcmpkey "Emprego" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pEmprego] = strvalval ); }
                    if( 
strcmpkey "Paycheck" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSalario] = strvalval ); }
                    if( 
strcmpkey "HeadValue" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHeadValue] = strvalval ); }
                    if( 
strcmpkey "Jailed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailed] = strvalval ); }
                    if( 
strcmpkey "JailTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailTime] = strvalval ); }
                    if( 
strcmpkey "Materiais" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMats] = strvalval ); }
                    if( 
strcmpkey "Maconha" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas] = strvalval ); }
                    if( 
strcmpkey "Cocaina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas2] = strvalval ); }
                    if( 
strcmpkey "Crack" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas3] = strvalval ); }
                    if( 
strcmpkey "Lider" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLider] = strvalval ); }
                    if( 
strcmpkey "Member" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMembro] = strvalval ); }
                    if( 
strcmpkey "Rank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCargo] = strvalval ); }
                    if( 
strcmpkey "Char" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSkin] = strvalval ); }
                    if( 
strcmpkey "ContractTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pContractTime] = strvalval ); }
                    if( 
strcmpkey "DetSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDetSkill] = strvalval ); }
                    if( 
strcmpkey "SexSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSexSkill] = strvalval ); }
                    if( 
strcmpkey "BoxSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoxSkill] = strvalval ); }
                    if( 
strcmpkey "LawSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLawSkill] = strvalval ); }
                    if( 
strcmpkey "MechSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMechSkill] = strvalval ); }
                    if( 
strcmpkey "NewsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNewsSkill] = strvalval ); }
                    if( 
strcmpkey "DrogasSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogasSkill] = strvalval ); }
                    if( 
strcmpkey "CookSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCookSkill] = strvalval ); }
                    if( 
strcmpkey "FishSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishSkill] = strvalval ); }
                    if( 
strcmpkey "pSHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSHealth] = floatstrval ); }
                    if( 
strcmpkey "Team" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTeam] = strvalval ); }
                    if( 
strcmpkey "PhoneNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPnumber] = strvalval ); }
                    if( 
strcmpkey "House" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPHousekey] = strvalval ); }
                    if( 
strcmpkey "Bizz" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPbiskey] = strvalval ); }
                    if( 
strcmpkey "Pos_x" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_x] = floatstrval ); }
                    if( 
strcmpkey "Pos_y" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_y] = floatstrval ); }
                    if( 
strcmpkey "Pos_z" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_z] = floatstrval ); }
                    if( 
strcmpkey "CarLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarLic] = strvalval ); }
                    if( 
strcmpkey "FlyLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFlyLic] = strvalval ); }
                    if( 
strcmpkey "BoatLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoatLic] = strvalval ); }
                    if( 
strcmpkey "FishLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishLic] = strvalval ); }
                    if( 
strcmpkey "GunLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGunLic] = strvalval ); }
                    if( 
strcmpkey "PayDay" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDay] = strvalval ); }
                    if( 
strcmpkey "CDPlayer" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCDPlayer] = strvalval ); }
                    if( 
strcmpkey "Wins" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWins] = strvalval ); }
                    if( 
strcmpkey "Loses" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLoses] = strvalval ); }
                    if( 
strcmpkey "AlcoholPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAlcoholPerk] = strvalval ); }
                    if( 
strcmpkey "DrugPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugPerk] = strvalval ); }
                    if( 
strcmpkey "MiserPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMiserPerk] = strvalval ); }
                    if( 
strcmpkey "PainPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPainPerk] = strvalval ); }
                    if( 
strcmpkey "TraderPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTraderPerk] = strvalval ); }
                    if( 
strcmpkey "Tutorial" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTut] = strvalval ); }
                    if( 
strcmpkey "Avisos" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarns] = strvalval ); }
                    if( 
strcmpkey "Married" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMarried] = strvalval ); }
                    if( 
strcmpkey "MarriedTo" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pMarriedTo], val0strlen(val)-1255); }
                    if( 
strcmpkey "Spawn" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSpawn] = strvalval ); }
                    if( 
strcmpkey "SafeMaconha" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas] = strvalval ); }
                    if( 
strcmpkey "SafeCocaina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas2] = strvalval ); }
                    if( 
strcmpkey "SafeCrack" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas3] = strvalval ); }
                    if( 
strcmpkey "NivelProcurado" true ) == ) { val ini_GetValueData ); WantedPoints[playerid] = strvalval ); }
                    if( 
strcmpkey "SafeMateriais" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][psMats] = strvalval ); }
                    if( 
strcmpkey "Luta" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLuta] = strvalval ); }
                    if( 
strcmpkey "Dorgado" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDorgado] = strvalval ); }
                    if( 
strcmpkey "Dorgado2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDorgado2] = strvalval ); }
                    if( 
strcmpkey "Doenca" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDoenca] = strvalval ); }
                    if( 
strcmpkey "Creditos" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCreditos] = strvalval ); }
                    if( 
strcmpkey "LU" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pLastLogin], val0strlen(val)-1255); }
                    if( 
strcmpkey "Gun1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun1] = strvalval ); }
                    if( 
strcmpkey "Gun2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun2] = strvalval ); }
                    if( 
strcmpkey "Gun3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun3] = strvalval ); }
                    if( 
strcmpkey "Gun4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun4] = strvalval ); }
                    if( 
strcmpkey "Gun5" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun5] = strvalval ); }
                    if( 
strcmpkey "Gun6" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun6] = strvalval ); }
                    if( 
strcmpkey "Gun7" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun7] = strvalval ); }
                    if( 
strcmpkey "Gun8" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun8] = strvalval ); }
                    if( 
strcmpkey "Gun9" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun9] = strvalval ); }
                    if( 
strcmpkey "Gun10" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun10] = strvalval ); }
                    if( 
strcmpkey "Gun11" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun11] = strvalval ); }
                    if( 
strcmpkey "Gun12" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun12] = strvalval ); }
                    if( 
strcmpkey "Ammo1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo1] = strvalval ); }
                    if( 
strcmpkey "Ammo2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo2] = strvalval ); }
                    if( 
strcmpkey "Ammo3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo3] = strvalval ); }
                    if( 
strcmpkey "Ammo4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo4] = strvalval ); }
                    if( 
strcmpkey "Ammo5" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo5] = strvalval ); }
                    if( 
strcmpkey "Ammo6" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo6] = strvalval ); }
                    if( 
strcmpkey "Ammo7" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo7] = strvalval ); }
                    if( 
strcmpkey "Ammo8" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo8] = strvalval ); }
                    if( 
strcmpkey "Ammo9" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo9] = strvalval ); }
                    if( 
strcmpkey "Ammo10" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo10] = strvalval ); }
                    if( 
strcmpkey "Ammo11" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo11] = strvalval ); }
                    if( 
strcmpkey "Ammo12" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo12] = strvalval ); }
                    
logouagora[playerid] = 1;
                    
CheckOwner(playerid);
                    
//CheckAdmin(playerid);
                    
CheckOwnerb(playerid);
                    
CheckOwnerh(playerid);
                    
//CheckVip(playerid);
                
}//end while
                
fclose(UserFile);//close the file after everything has been read in the while
        

Erro linha : 19594

PHP код:
     if (strcmp(cmd"/logar"true) ==)
    {
        if(
IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
        {
            new 
tmppass[64];
            if(
gPlayerLogged[playerid] == 1)
            {
                
SendClientMessage(playeridCOLOR_GREY" Vocк jб estб logado.");
                return 
1;
            }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"USE: /logar [Senha]");
                
ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT"Brasil Style Games v3.0""Bem Vindo ao Brasil Style Games\nDigite sua Senha para Logar!!!""Logar""Esperar");
                return 
1;
            }
            
strmid(tmppasstmp0strlen(cmdtext), 255);
            
Encrypt(tmppass);
            
OnPlayerLogin(playerid,tmppass);//Erro 19594
        
}
        return 
1;
    } 
Erro linha: 29385

PHP код:
    if(strcmp(cmd"/veh"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
         {
            if (
PlayerInfo[playerid][pAdmin] < 1338)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"   Vocк nгo esta autorizado a usar este comando!");
                   return 
1;
            }
            if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != 1342)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/pa)");
                return 
1;
            }
            if(
CreatedCar >= 96)
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Jб criaram muitos carros, destrua alguns primeiro /destruirid");
                return 
1;
            }
              
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
               {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /veh [IDCARRO] [COR1] [COR2]");
                return 
1;
               }
              new 
Text:SVTEXT;
            new 
FloatXFloatYFloatZFloatAngle;
            
GetPlayerName(playerid);
            
format(string,sizeof(string),"Veiculo crido pelo Admin:\n%s[ID:%d]",playername,playerid);
            
GetPlayerPos(playerid,X,Y,Z);
            
GetPlayerFacingAngle(playerid,Angle);
            
DestroyVehicle(GetPVarInt(playerid,"Veiculo"));
            
PutPlayerInVehicle(playerid,CreateVehicle(411,X,YZ+2,Angle,-1,-1,-1),0);
            
LinkVehicleToInterior(GetPlayerVehicleID(playerid) ,GetPlayerInterior(playerid));
            new 
car GetPlayerVehicleID(playerid);
            
AddVehicleComponent(car,1079);
            
SetPVarInt(playerid,"Veiculo",GetPlayerVehicleID(playerid));
            
SVTEXT Create3DTextLabel(string,0xFF8000FF,0,0,0,40.0,1); //tag mismatch
            
Attach3DTextLabelToVehicle(SVTEXTcar0.00.01.0); //tag mismatch
              
}
         } 
Reply


Messages In This Thread
me ajudem por favor ja fiz de tudo - by Alexbav - 22.07.2013, 00:21
Re: me ajudem por favor ja fiz de tudo - by GM_KoDi - 22.07.2013, 01:24
Re: me ajudem por favor ja fiz de tudo - by Alexbav - 22.07.2013, 01:52

Forum Jump:


Users browsing this thread: 1 Guest(s)