Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: [IF] mariomako poslato Jun 13, 2010, 22:14:37 POSLE PODNE

Naslov: Problem sa /oruzje
Poruka od: [IF] mariomako poslato Jun 13, 2010, 22:14:37 POSLE PODNE
Sta je ovde problem?

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/oruzje", true) == 0)
{
    if(PlayerToPoint(5.0,playerid,1245.5746,902.7939,42.8828))
    {
      ShowPlayerDialog(playerid,oruzje, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\Deagle 100$\SawnOff 200$\M4 250$\AK47 250$\Rifle 300$", "Kupi", "Otkazi");
        }
        return 1;
    }
return 0;
}


na ove redove izbacuje ove errore
C:\Documents and Settings\Mako\Desktop\oruzje.pwn(9) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Mako\Desktop\oruzje.pwn(11) : error 017: undefined symbol "PlayerToPoint"
C:\Documents and Settings\Mako\Desktop\oruzje.pwn(13) : error 027: invalid character constant
C:\Documents and Settings\Mako\Desktop\oruzje.pwn(13) : error 027: invalid character constant
Naslov: Odg: Problem sa /oruzje
Poruka od: Joey_ poslato Jun 13, 2010, 22:43:45 POSLE PODNE

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/oruzje", true) == 0)
    {
       if(PlayerToPoint(5.0,playerid,1245.5746,902.7939,42.8828))
       {
        ShowPlayerDialog(playerid,oruzje, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\n Deagle 100$\n SawnOff 200$\n M4 250$\n AK47 250$\n Rifle 300$", "Kupi", "Otkazi");
       }
        return 1;
    }
   return 0;
}
Ovo probaj ako ne radi javi se ponovno.
Naslov: Odg: Problem sa /oruzje
Poruka od: [IF] mariomako poslato Jun 13, 2010, 22:45:23 POSLE PODNE
Citat: Johnâ,,¢ poslato Jun 13, 2010, 22:43:45 POSLE PODNE

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/oruzje", true) == 0)
    {
       if(PlayerToPoint(5.0,playerid,1245.5746,902.7939,42.8828))
       {
        ShowPlayerDialog(playerid,oruzje, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\n Deagle 100$\n SawnOff 200$\n M4 250$\n AK47 250$\n Rifle 300$", "Kupi", "Otkazi");
       }
        return 1;
    }
   return 0;
}
Ovo probaj ako ne radi javi se ponovno.

pa ovaj tvoj kod nalazi sledeci errore

C:\Documents and Settings\Mako\Desktop\oruzje.pwn(11) : error 017: undefined symbol "PlayerToPoint"
C:\Documents and Settings\Mako\Desktop\oruzje.pwn(15) : warning 217: loose indentation
C:\Documents and Settings\Mako\Desktop\oruzje.pwn(17) : warning 217: loose indentation
Naslov: Odg: Problem sa /oruzje
Poruka od: Joey_ poslato Jun 13, 2010, 22:49:27 POSLE PODNE

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/oruzje", true) == 0)
    {
       if(IsPlayerInRangeOfPoint(playerid, 5.0, 1245.5746, 902.7939, 42.8828))
       {
        ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\n Deagle 100$\n SawnOff 200$\n M4 250$\n AK47 250$\n Rifle 300$", "Kupi", "Otkazi");
       }
        return 1;
    }
   return 0;
}

S ovime bi sve trebalo biti u redu.
Naslov: Odg: Problem sa /oruzje
Poruka od: [IF] mariomako poslato Jun 13, 2010, 23:06:36 POSLE PODNE
Citat: Johnâ,,¢ poslato Jun 13, 2010, 22:49:27 POSLE PODNE

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/oruzje", true) == 0)
    {
       if(IsPlayerInRangeOfPoint(playerid, 5.0, 1245.5746, 902.7939, 42.8828))
       {
        ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\n Deagle 100$\n SawnOff 200$\n M4 250$\n AK47 250$\n Rifle 300$", "Kupi", "Otkazi");
       }
        return 1;
    }
   return 0;
}

S ovime bi sve trebalo biti u redu.
ni sa to nece samo ovo je resenje

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/oruzje", true) == 0)
    {
       if(IsPlayerInRangeOfPoint(playerid, 5.0, 1245.5746, 902.7939, 42.8828))
       {
        ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\n Deagle 100$\n SawnOff 200$\n M4 250$\n AK47 250$\n Rifle 300$", "Kupi", "Otkazi");
       }
   return 1;
    }
return 0;
}
Naslov: Odg: Problem sa /oruzje
Poruka od: Joey_ poslato Jun 13, 2010, 23:11:03 POSLE PODNE
Znaci sad sve radi?
Naslov: Odg: Problem sa /oruzje
Poruka od: Kort!NuZ poslato Jun 14, 2010, 00:32:54 PRE PODNE
ja mislim da treba ovako

   1. public OnPlayerCommandText(playerid, cmdtext[]) 

   if(strcmp(cmdtext, "/oruzje", true) == 0) 
    { 
     if(IsPlayerInRangeOfPoint(playerid, 5.0, 1245.5746, 902.7939, 42.8828)) 
      { 
        ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST, "Izaberete oruzje:", "SDPistol 100$\n Deagle 100$\n SawnOff 200$\n M4 250$\n AK47 250$\n Rifle 300$", "Kupi", "Otkazi"); 
      } 
      return 1; 
    } 
   return 0; 

Naslov: Odg: Problem sa /oruzje
Poruka od: [IF] mariomako poslato Jun 14, 2010, 08:56:22 PRE PODNE
Moze LOCK da nebi bilo SPAMa jel sam resio problem