Szerző Téma: Defensive Motozás Hiba  (Megtekintve 678 alkalommal)

Defensive Motozás Hiba
« Dátum: 2014. Május 18. - 15:07:16 »
0
Sziasztok a Defensive módba szerintem már többen tapasztalták hogy a /megmotoz parancs nem mükszik ugyanis ha beírom aztírja ki hogy nincs ilyen parancs  valaki ebben tud segiteni?:S
 
CMD:megmotoz(playerid,params[])
{
    new Mati[30], Drog[30], Fu[30], Colt[30], Desi[30], S[256];
    new suspect = GetClosestPlayerToPlayer(playerid);
    new Weapon, Ammo;
    Weapon = GetPlayerWeapon(playerid);
    Ammo = GetPlayerAmmo(playerid);
   
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, PIROS, \"A játékos nem elérhetõ!\");
//
if(pInfo[suspect][pMati] >= 1)
{
format(Mati, sizeof(Mati), \"Van\");
}
else if(pInfo[suspect][pMati] == 0)
{
format(Mati, sizeof(Mati), \"Nincs\");
}
//
if(pInfo[suspect][pCocain] >= 1)
{
format(Drog, sizeof(Drog), \"Van\");
}
else if(pInfo[suspect][pCocain] == 0)
{
format(Drog, sizeof(Drog), \"Nincs\");
}
//
if(pInfo[suspect][pFCigi] >= 1)
{
format(Fu, sizeof(Fu), \"Van\");
}
else if(pInfo[suspect][pFCigi] == 0)
{
format(Fu, sizeof(Fu), \"Nincs\");
}
//
if(pInfo[suspect][pColt] >= 1 || Weapon == 22 && Ammo >= 0)
{
format(Colt, sizeof(Colt), \"Van\");
}
else if(pInfo[suspect][pColt] == 0)
{
format(Colt, sizeof(Colt), \"Nincs\");
}
//
if(pInfo[suspect][pDeagle] >= 1 || Weapon == 24 && Ammo >= 0)
{
format(Desi, sizeof(Desi), \"Van\");
}
else if(pInfo[suspect][pDeagle] == 0)
{
format(Desi, sizeof(Desi), \"Nincs\");
}
SendClientMessage(playerid, NARANCS, \"________________|Adatok|________________\");
    format(S, sizeof(S), \"| Név: %s | Mati: %s |\", Nev(suspect), Mati), SendClientMessage(playerid, NARANCS, S);
    format(S, sizeof(S), \"| Desi: %s | Colt: %s |\", Desi, Colt), SendClientMessage(playerid, NARANCS, S);
    format(S, sizeof(S), \"| Cannabis: %s | Cocain: %s |\", Fu, Drog), SendClientMessage(playerid, NARANCS, S);
    ApplyAnimation(playerid,\"SPRAYCAN\",\"spraycan_full\",4.0,0,0,0,0,0);
ApplyAnimation(playerid,\"SPRAYCAN\",\"spraycan_full\",4.0,0,0,0,0,0);
cmd_me(playerid, \"megmotoz valakit\");
SendClientMessage(playerid, suspect, \"Megmotoztak!\");
return 1;
}

 
[mod]Kitettem helyetted a

taget![/mod]
« Utoljára szerkesztve: 2014. Május 18. - 16:10:24 írta Dfoglalo »

Defensive Motozás Hiba
« Válasz #1 Dátum: 2014. Május 24. - 11:41:24 »
0
Idézetet írta: SkyLinE date=1400689981\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"48281\" data-ipsquote-contentclass=\"forums_Topic
sscanfot frissítsd...
 
Talán elavult, az sscanf és azért!

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Defensive Motozás Hiba
« Válasz #2 Dátum: 2014. Május 24. - 14:44:15 »
0
Hiányzik ez a sor:
Változók(new) után:
 
if(sscanf(params, \"i\", id)) return SendClientMessage(playerid, -1, \"/motoz playerid\");

 


A másik témádban, meg az a hiba hogy régi az sscanf-od, vagy ugyanígy nem írtad oda ezt a sort a parancsaidhoz..

Defensive Motozás Hiba
« Válasz #3 Dátum: 2014. Május 18. - 15:07:16 »
0
Sziasztok a Defensive módba szerintem már többen tapasztalták hogy a /megmotoz parancs nem mükszik ugyanis ha beírom aztírja ki hogy nincs ilyen parancs  valaki ebben tud segiteni?:S
 
CMD:megmotoz(playerid,params[])
{
    new Mati[30], Drog[30], Fu[30], Colt[30], Desi[30], S[256];
    new suspect = GetClosestPlayerToPlayer(playerid);
    new Weapon, Ammo;
    Weapon = GetPlayerWeapon(playerid);
    Ammo = GetPlayerAmmo(playerid);
   
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, PIROS, \"A játékos nem elérhetõ!\");
//
if(pInfo[suspect][pMati] >= 1)
{
format(Mati, sizeof(Mati), \"Van\");
}
else if(pInfo[suspect][pMati] == 0)
{
format(Mati, sizeof(Mati), \"Nincs\");
}
//
if(pInfo[suspect][pCocain] >= 1)
{
format(Drog, sizeof(Drog), \"Van\");
}
else if(pInfo[suspect][pCocain] == 0)
{
format(Drog, sizeof(Drog), \"Nincs\");
}
//
if(pInfo[suspect][pFCigi] >= 1)
{
format(Fu, sizeof(Fu), \"Van\");
}
else if(pInfo[suspect][pFCigi] == 0)
{
format(Fu, sizeof(Fu), \"Nincs\");
}
//
if(pInfo[suspect][pColt] >= 1 || Weapon == 22 && Ammo >= 0)
{
format(Colt, sizeof(Colt), \"Van\");
}
else if(pInfo[suspect][pColt] == 0)
{
format(Colt, sizeof(Colt), \"Nincs\");
}
//
if(pInfo[suspect][pDeagle] >= 1 || Weapon == 24 && Ammo >= 0)
{
format(Desi, sizeof(Desi), \"Van\");
}
else if(pInfo[suspect][pDeagle] == 0)
{
format(Desi, sizeof(Desi), \"Nincs\");
}
SendClientMessage(playerid, NARANCS, \"________________|Adatok|________________\");
    format(S, sizeof(S), \"| Név: %s | Mati: %s |\", Nev(suspect), Mati), SendClientMessage(playerid, NARANCS, S);
    format(S, sizeof(S), \"| Desi: %s | Colt: %s |\", Desi, Colt), SendClientMessage(playerid, NARANCS, S);
    format(S, sizeof(S), \"| Cannabis: %s | Cocain: %s |\", Fu, Drog), SendClientMessage(playerid, NARANCS, S);
    ApplyAnimation(playerid,\"SPRAYCAN\",\"spraycan_full\",4.0,0,0,0,0,0);
ApplyAnimation(playerid,\"SPRAYCAN\",\"spraycan_full\",4.0,0,0,0,0,0);
cmd_me(playerid, \"megmotoz valakit\");
SendClientMessage(playerid, suspect, \"Megmotoztak!\");
return 1;
}

 
[mod]Kitettem helyetted a

taget![/mod]
« Utoljára szerkesztve: 2014. Május 18. - 16:10:24 írta Dfoglalo »

Defensive Motozás Hiba
« Válasz #4 Dátum: 2014. Május 24. - 11:41:24 »
0
Idézetet írta: SkyLinE date=1400689981\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"48281\" data-ipsquote-contentclass=\"forums_Topic
sscanfot frissítsd...
 
Talán elavult, az sscanf és azért!

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Defensive Motozás Hiba
« Válasz #5 Dátum: 2014. Május 24. - 14:44:15 »
0
Hiányzik ez a sor:
Változók(new) után:
 
if(sscanf(params, \"i\", id)) return SendClientMessage(playerid, -1, \"/motoz playerid\");

 


A másik témádban, meg az a hiba hogy régi az sscanf-od, vagy ugyanígy nem írtad oda ezt a sort a parancsaidhoz..

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal