[Ajuda] Warn
#1

bem , eu arrumei os bugs do meus portхes , o da rotaзгo de quando vocк passa seu gm para 0.3d ...
Entгo a cada portгo que desbugava aparecia 2 warnings e acumulou-se , sei que compila mesmo com warns , mas eles incomodam e sгo chatos .

pawn Код:
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32847) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32847) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32847) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32862) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32877) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32892) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32892) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32892) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32937) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32937) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32937) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32952) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32952) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32967) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32967) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(32967) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33023) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33023) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33023) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33037) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33037) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33037) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33052) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33052) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33052) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33111) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33112) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33112) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(33112) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44233) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44233) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44233) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44269) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44269) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44269) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44274) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44279) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44279) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44279) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44299) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44299) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44299) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44309) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44309) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44309) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44314) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44314) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44314) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44319) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44319) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44319) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44324) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44324) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44324) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44339) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44339) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44339) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44344) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44344) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44344) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44345) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44345) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Felipe\Desktop\Brazil Life Project\gamemodes\BMG.pwn(44345) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10608 bytes
Code size:          2050248 bytes
Data size:          2782584 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 4859824 bytes

71 Warnings.
E agora todo o script do portгo


pawn Код:
new PDDOORb;
pawn Код:
forward GaragemDpClosed2();
pawn Код:
PDDOORb = CreateObject( 985 , 250.774871 , 60.822799 , 1003.640625 , 0.000000 , 0.000000 , 5130.000000 );
pawn Код:
if(strcmp(cmd, "/pr", true) == 0)
    {
        if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 250.774871 , 60.822799 , 1003.640625))
        { //GateGaragem
            MoveObject( PDDOORb, 250.774871 , 60.822799 , 1006.862670, 3, 0, 0, 5130.000000); //linha 32847 - warn
            GameTextForPlayer(playerid, "~w~Porta da Recepcao ~n~~b~Aberto", 5000, 3);
            SetTimer("GaragemDpClosed2", 5000, false);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto do portгo ou nгo й um Oficial ");
        }
        return 1;
    }
pawn Код:
public GaragemDpClosed2()
{
    MoveObject(PDDOORb,250.774871 , 60.822799 , 1003.640625, 2.0, 0, 0, 5130.000000);//GaragemClosed
    return 1;
}
Reply
#2

Desculpa double post , mas ninguem D; ?
Reply
#3

Cara, nгo sei ao certo.

pawn Код:
MoveObject( PDDOORb, 250.774871 , 60.822799 , 1006.862670, 3, 0, 0, 5130.000000); //linha 32847 - warn
No lugar de "PDDOORb" coloque o ID do portгo que vocк quer.

(( Acho que й isso, deixe alguйm com mais experiencia ver isso! =S ))
Reply
#4

Em todo o script ?
Reply
#5

Apenas no portгo nй.

Код:
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0)
Reply
#6

Sim ... , mas entгo a minha variбvel eu apago ?

Substituo no script do portгo todo ?
...
Reply
#7

Coloque "//" na frente.
pawn Код:
// new PDDOORb;
Deixe isso assim.
pawn Код:
forward GaragemDpClosed2();
Coloque "//" na frente.
pawn Код:
// PDDOORb = CreateObject( 985 , 250.774871 , 60.822799 , 1003.640625 , 0.000000 , 0.000000 , 5130.000000 );
Adicione no "public OnGameModeInit()" isso.
pawn Код:
public OnGameModeInit()
CreateObject( 985 , 250.774871 , 60.822799 , 1003.640625 , 0.000000 , 0.000000 , 5130.000000 );
pawn Код:
if(strcmp(cmd, "/pr", true) == 0)
    {
        if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 250.774871 , 60.822799 , 1003.640625))
        { //GateGaragem
            MoveObject( 985, 250.774871 , 60.822799 , 1006.862670, 3.0, 0, 0, 5130.000000); // Mude o "PDDOORb" para 985.
            GameTextForPlayer(playerid, "~w~Porta da Recepcao ~n~~b~Aberto", 5000, 3);
            SetTimer("GaragemDpClosed2", 5000, false);
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "   Vocк nгo estб perto do portгo ou nгo й um Oficial ");
        }
        return 1;
    }
pawn Код:
public GaragemDpClosed2()
{
    MoveObject(985,250.774871 , 60.822799 , 1003.640625, 2.0, 0, 0, 5130.000000);// Mude o "PDDOORb" para 985.
    return 1;
}
Reply
#8

obrigado , mas nгo funcionou , mesmo assim muito obrigado ;3
Reply
#9

=B

Valeu, valeu.
Mas ele ainda dб os mesmos Warnings?
Reply
#10

sim ;s
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)