-
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]
-
sscanfot frissítsd...
Talán elavult, az sscanf és azért!
-
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..
-
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]
-
sscanfot frissítsd...
Talán elavult, az sscanf és azért!
-
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..