Jump to content
  • 0

Question

Posted

Am bagat si eu ceva prin GM si ami da 1 Warning

nush de la ce o fi. :(

C:\Documents and Settings\LEON\Desktop\SA-MP\gamemodes\a.pwn(41229) : warning 203: symbol is never used: "LoopingAnim"

Da la linia aia care mio zice nu se afla nimik e sfarsitul la GM

stock GetPlayerSpeed(playerid)

{

   new Float:X, Float:Y, Float:Z;

   if(IsPlayerInAnyVehicle(playerid))

   {

       GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);

       return floatround(floatmul(floatmul(floatsqroot(floatpower(floatabs(X), 2) + floatpower(floatabs(Y), 2) + floatpower(floatabs(Z), 2)), 100), 1.621371192), floatround_round);

   }

   else

   {

       GetPlayerVelocity(playerid, X, Y, Z);

       return floatround(floatmul(floatmul(floatsqroot(floatpower(floatabs(X), 2) + floatpower(floatabs(Y), 2) + floatpower(floatabs(Z), 2)), 100), 1.621371192), floatround_round);

   }

} lini aia 41229 vine sub paranteza asta da nu e nimik dedesupt , ultima linie e 41228

Singurele chestii care le am cu LoopingAnim sunt astea

new gPlayerUsingLoopingAnim[MAX_PLAYERS];

LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)

{

if (workingout[playerid] == 1)

{

SendClientMessage(playerid,COLOR_GREY,"  You cannot do this right now");

return 1;

}

    if(PlayerCuffed[playerid] == 1)

    {

    SendClientMessage(playerid, COLOR_GREY, "You cannot do this right now!");

    return 1;

    }

    gPlayerUsingLoopingAnim[playerid] = 1;

    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);

    return 1;

}

Ma puteti ajuta ca nu stiu ce sa fak  ???

i0418xcttya707ofg.jpg

3 answers to this question

Recommended Posts

Guest NiGhTWoLF
Posted

Pai este doar un avertisment ca este definita "LoopingAnim" , dar nu este folosita. Nu te incurca prea mult nici daca lasi gamemodul asa, nici daca stergi functia respectiva . Sau mai poti sa adaugi

#pragma unused LoopingAnim

la inceputul gamemodului si avertismentul nu va mai fi afisat.

Posted

Am pus la inceput cum ai zis da imi da erori

C:\Documents and Settings\LEON\Desktop\SA-MP\gamemodes\a.pwn(40629) : error 017: undefined symbol "workingout"

C:\Documents and Settings\LEON\Desktop\SA-MP\gamemodes\a.pwn(40629) : warning 215: expression has no effect

C:\Documents and Settings\LEON\Desktop\SA-MP\gamemodes\a.pwn(40629) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\LEON\Desktop\SA-MP\gamemodes\a.pwn(40629) : error 029: invalid expression, assumed zero

C:\Documents and Settings\LEON\Desktop\SA-MP\gamemodes\a.pwn(40629) : fatal error 107: too many error messages on one line

i0418xcttya707ofg.jpg

Posted

eroarea nu este de la ce a zis nightwolf ci este din cauza ca variabila workingout nu este declarata

pui la inceputul scriptului :

new workingout[MAX_PLAYERS];

si o sa mearga

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.