Szerző Téma: Anim  (Megtekintve 925 alkalommal)

Nem elérhető SnicK

  • 7521
    • Profil megtekintése
Anim
« Dátum: 2010. Február 20. - 22:31:33 »
0 Show voters
Üdv!
Beraktam az rp módba a kiáltáshoz a kiáltás animot... de nem akar megállni :S
Valaki megmondja mit kell átírni?
LoopingAnim(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);

Anim
« Válasz #1 Dátum: 2010. Február 21. - 08:39:49 »
0 Show voters
ClearAnimations(playerid);

Nem elérhető SnicK

  • 7521
    • Profil megtekintése
Anim
« Válasz #2 Dátum: 2010. Február 21. - 09:53:23 »
0 Show voters
Nemjó.
 

if(strcmp(cmd, \"/shout\", true) == 0 || strcmp(cmd, \"/s\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, \"   Be kell jelentkezned !\");
            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, \"Használat: (/s)hout [szöveg]\");
      return 1;
   }
   format(string, sizeof(string), \"%s ordítja: %s!!\", sendername, result);
    LoopingAnim(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);
   ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
   printf(\"%s\", string);
   ClearAnimations(playerid);
}
return 1;
}

Nem elérhető Iceaac

  • 2187
    • Profil megtekintése
Anim
« Válasz #3 Dátum: 2010. Február 21. - 10:56:47 »
0 Show voters
Idozítovel állítsd le. (SetTImerEx)

Anim
« Válasz #4 Dátum: 2010. Február 21. - 16:43:26 »
0 Show voters
Idézetet írta: SnicK date=1266742403\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"756\" data-ipsquote-contentclass=\"forums_Topic
Nemjó.
 

if(strcmp(cmd, \"/shout\", true) == 0 || strcmp(cmd, \"/s\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, \"   Be kell jelentkezned !\");
            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, \"Használat: (/s)hout [szöveg]\");
      return 1;
   }
   format(string, sizeof(string), \"%s ordítja: %s!!\", sendername, result);
    LoopingAnim(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);
   ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
   printf(\"%s\", string);
   ClearAnimations(playerid);
}
return 1;
}

 

OOOO: ................. - nem jó
 
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 017: undefined symbol \"gPlayerLogged\"
C:\\Documents and Settings\\.....\\GTA\\....\\gamemodes....pwn(188) : warning 215: expression has no effect
C:\\Documents and Settings\\....\\GTA\\....\\gamemodes\\....pwn(188) : error 001: expected token: \";\", but found \"]\"
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\...\\GTA\\...\\gamemodes...pwn(188) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
4 Errors.

Nem elérhető Iceaac

  • 2187
    • Profil megtekintése
Anim
« Válasz #5 Dátum: 2010. Február 21. - 21:28:25 »
0 Show voters
Idézetet írta: Predator date=1266767006\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"756\" data-ipsquote-contentclass=\"forums_Topic


Nemjó.
 

if(strcmp(cmd, \"/shout\", true) == 0 || strcmp(cmd, \"/s\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, \"   Be kell jelentkezned !\");
            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, \"Használat: (/s)hout [szöveg]\");
      return 1;
   }
   format(string, sizeof(string), \"%s ordítja: %s!!\", sendername, result);
    LoopingAnim(playerid,\"RIOT\",\"RIOT_shout\",4.0,1,0,0,0,0);
   ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
   printf(\"%s\", string);
   ClearAnimations(playerid);
}
return 1;
}

 

OOOO: ................. - nem jó
 
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 017: undefined symbol \"gPlayerLogged\"
C:\\Documents and Settings\\.....\\GTA\\....\\gamemodes....pwn(188) : warning 215: expression has no effect
C:\\Documents and Settings\\....\\GTA\\....\\gamemodes\\....pwn(188) : error 001: expected token: \";\", but found \"]\"
C:\\Documents and Settings\\....\\GTA\\...\\gamemodes\\.....pwn(188) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\...\\GTA\\...\\gamemodes...pwn(188) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
4 Errors.

 

[/quote]
Pfff már loptad is? Istenem! Am nincs gPlayerLoggedIn változód.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal