GTATurk.com Reklam Hizmetleri

Haberler:

Gönderen Konu: [YARDIM]Givegun sorunu  (Okunma sayısı 106 defa)

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimiçi delioyuncu

  • North Holland Hustlers
  • *
  • İleti: 154
[YARDIM]Givegun sorunu
« : 31 Ocak 2012 ; 21:55:14 »
Arkadaşlar biz modumuzu yeni kodlamaya başladık. /givegun komutumuz yok dolayısıyla sunucuda silah yok.Fs çeklinde veya kod şeklinde paylaşırsanız çok memnun olurum.


Reklamlar

Tüm oyun fırsatları için tıklayın !

  Reklamlar


Çevrimdışı By_Spec[TR]a

  • Albanians
  • İleti: 415
  • <Sagopa Kajmer>
    • -
Ynt: [YARDIM]Givegun sorunu
« Yanıtla #1 : 31 Ocak 2012 ; 23:08:47 »
Aklında Nasıl Birşey Var Anlamadım Ama Buyur Örnek Olarak;
Pawn: [Seç]
if(!strcmp(cmdtext,"/givegun",true)) {
GivePlayerWeapon(playerid,38,125); //38 İdsi Silah İdsi 125 İse Kurşun Sayısıreturn 1;
}
Silah İdsi İçin Tıkla
[/color][/size]

Çevrimdışı knuckled

  • Albanians
  • İleti: 218
Ynt: [YARDIM]Givegun sorunu
« Yanıtla #2 : 01 Şubat 2012 ; 00:27:20 »
Aklında Nasıl Birşey Var Anlamadım Ama Buyur Örnek Olarak;
Pawn: [Seç]
if(!strcmp(cmdtext,"/givegun",true)) {
GivePlayerWeapon(playerid,38,125); //38 İdsi Silah İdsi 125 İse Kurşun Sayısıreturn 1;
}
Silah İdsi İçin Tıkla
[/color][/size]
Her givegun yazdığında o silah gelir ozaman. /mp5 filan değiştirmek lazım onu. Sanırım birde adam, adminin farklı oyunculara farklı silahları verebilmesini istiyor bu komutta.[/td][/tr][/table]
« Son Düzenleme: 01 Şubat 2012 ; 00:27:30 Gönderen: knuckled »
İmzanız kurallara aykırı olduğundan dolayı kaldırılmıştır. İmzanıza video koyamazsınız.

Çevrimdışı Eren_Tataroglu

  • Albanians
  • İleti: 91
  • Eren_Tataroglu(AKTİF) Valentino_Scorpion (PASİF)
Ynt: [YARDIM]Givegun sorunu
« Yanıtla #3 : 01 Şubat 2012 ; 04:56:30 »
Her givegun yazdığında o silah gelir ozaman. /mp5 filan değiştirmek lazım onu. Sanırım birde adam, adminin farklı oyunculara farklı silahları verebilmesini istiyor bu komutta.

Kod: [Seç]
if(strcmp(cmd, "/givegun", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[SERVER] /givegun [Oyuncu ID] [Silah ID] [Kurşun]");
return 1;
}
new playa;
new gun;
new ammo;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
gun = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Kullanım : /givegun [Oyuncu ID] [Silah ID] [Kurşun]");
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
return 1;
}
if(gun > 1||gun < 47)
{
tmp = strtok(cmdtext, idx);
ammo = strval(tmp);
if(ammo <1||ammo > 9999)
{ SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[SERVER] En Fazla 9999 Mermi Olabilir."); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 3)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
GivePlayerWeapon(playa, gun, ammo);
format(string, 128, "(( .:[Yönetici Bilgi]:. %s, %s [%d] Adlı Oyuncuya '%d' Numaralı Silahı '%d' Mermiyle Verdi. ))",GetPlayerNameEx(playerid),GetPlayerNameEx(playa),playa,gun,ammo);
AdministratorMessage(COLOR_GRAD1,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[SERVER] Yönetici Değilsiniz veya Yetkileriniz Bu Komutu Kapsamıyor !");
}
}
}
return 1;
}

Yardımcı Olduysam Ne Mutlu Bana.

Çevrimiçi delioyuncu

  • North Holland Hustlers
  • *
  • İleti: 154
Ynt: [YARDIM]Givegun sorunu [KİLİTLENEBİLİR]
« Yanıtla #4 : 01 Şubat 2012 ; 09:16:47 »
Çok teşekkür ederim.Konu kilitlenebilir

Çevrimdışı gokceoglu

  • Albanians
  • İleti: 91
  • www.gtaturk.com
Ynt: [YARDIM]Givegun sorunu
« Yanıtla #5 : 01 Şubat 2012 ; 13:03:18 »
Kod: [Seç]
if(strcmp(cmd, "/givegun", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[SERVER] /givegun [Oyuncu ID] [Silah ID] [Kurşun]");
return 1;
}
new playa;
new gun;
new ammo;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
gun = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "Kullanım : /givegun [Oyuncu ID] [Silah ID] [Kurşun]");
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
return 1;
}
if(gun > 1||gun < 47)
{
tmp = strtok(cmdtext, idx);
ammo = strval(tmp);
if(ammo <1||ammo > 9999)
{ SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[SERVER] En Fazla 9999 Mermi Olabilir."); return 1; }
if (PlayerInfo[playerid][pAdmin] >= 3)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
GivePlayerWeapon(playa, gun, ammo);
format(string, 128, "(( .:[Yönetici Bilgi]:. %s, %s [%d] Adlı Oyuncuya '%d' Numaralı Silahı '%d' Mermiyle Verdi. ))",GetPlayerNameEx(playerid),GetPlayerNameEx(playa),playa,gun,ammo);
AdministratorMessage(COLOR_GRAD1,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[SERVER] Yönetici Değilsiniz veya Yetkileriniz Bu Komutu Kapsamıyor !");
}
}
}
return 1;
}

Yardımcı Olduysam Ne Mutlu Bana.

Bu Hatayı Alıyorum Kardeş :
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 3) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 6) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 9) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 14) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 17) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 20) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 21) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 22) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 24) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 28) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 29) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 30) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 32) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 34) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37) : error 010: invalid function or declaration
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 39) : error 054: unmatched closing brace ("}")
C:\Users\EXPER\Desktop\SAMP\Capital Role Play\pawno\asdasd.pwn(37 -- 39) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


19 Errors.