[pomoc] animacija

Započeo sampzone, Maj 28, 2011, 22:46:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

mod koji ja korisitm: BU

problem: ja sam napravio animacuju kada igrac /s da mu stavi ruke na usta...ali imam dva problema....kada igrac /s animacija pocne i nezavrsava...stalno ponavlja...i pojavi mi se warning a to je:
C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(27500) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


Warning.

animaciju sam dodavao na dva nacina i opet je isto a to je:
if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)
{
ApplyAnimation(playerid,"ON_LOOKERS","shout_01",4.1,1,1,1,1,1,1);
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
            return 1;
        }
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/s)hout [local chat]");
return 1;
}
if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "Stranac vice: %s!!", result);

}
else
{
format(string, sizeof(string), "%s vice: %s!!", sendername, result);

}
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
}
}
return 1;
}


a drugi nacin je:
if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)
{

    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
            return 1;
        }
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/s)hout [local chat]");
return 1;
}
if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "Stranac vice: %s!!", result);

}
else
{
format(string, sizeof(string), "%s vice: %s!!", sendername, result);

}
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
           ApplyAnimation(playerid,"ON_LOOKERS","shout_01",4.1,1,1,1,1,1,1);
}
return 1;
}


i opet mi se pojavi warning i animacija ne prestaje kada pocne

Hvala za pomoc unaprijed!

ClearAnimation
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

gdje da stavim ClearAnimation a i zasto mi izbacuje warning...gdje tacno treba da u komandu postavim animaciju?

Koristi ovaj
if(strcmp(cmd, "/shout", true) == 0 || strcmp(cmd, "/s", true) == 0)
{

    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili !");
            return 1;
        }
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/s)hout [local chat]");
return 1;
}
if(PlayerInfo[playerid][pMaskuse] == 1)
{
format(string, sizeof(string), "Stranac vice: %s!!", result);

}
else
{
format(string, sizeof(string), "%s vice: %s!!", sendername, result);

}
ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
printf("%s", string);
           ApplyAnimation(playerid,"ON_LOOKERS","shout_01",4.1,1,1,1,1,1,1);
}
return 1;
}

umjesto ovog  ApplyAnimation(playerid,"ON_LOOKERS","shout_01",4.1,1,1,1,1,1,1);  probaj staviti ovako OnePlayAnim(playerid,"ON_LOOKERS","shout_01", 4.0, 0, 0, 0, 0, 0);

kada stavim  OnePlayAnim izbaci mi error

C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(27539) : error 017: undefined symbol "OnePlayAnim"

Citat: sampzone poslato Maj 28, 2011, 23:24:42 POSLE PODNE
kada stavim  OnePlayAnim izbaci mi error

C:\DOCUME~1\Brkovic\Desktop\BUMOD~1\GAMEMO~1\BALKAN~1.PWN(27539) : error 017: undefined symbol "OnePlayAnim"

OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    if (gPlayerUsingLoopingAnim[playerid] == 1) TextDrawHideForPlayer(playerid,txtAnimHelper);
ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
animation[playerid]++;
}



ja sam molio za pomoc a ne za prodike

Citat: [AG] System32 poslato Maj 28, 2011, 23:42:15 POSLE PODNE
aaaaaaaaaaaaa [Cenzura | Moderator] pa stavi j eu guzic eto di, jel ti mozes malo pogledati kod pa neces sigurno staviti u koamndu oomfgggggggg imas 120 tema valjda si trebao skuiti pa i [cenzura]i bi skuzio
Moderator: Bez psovanja
System32 post ti je obrisan zbog psovanja i nepostovanja pravila!