Problem sa /oruzje

Započeo [IF] mariomako, Jun 13, 2010, 22:14:37 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

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


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.

Last nick: Paradox

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


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.
Poslednja Izmena: Jun 13, 2010, 22:49:47 POSLE PODNE od Johnâ„¢

Last nick: Paradox

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;
}

Znaci sad sve radi?

Last nick: Paradox

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; 


Moze LOCK da nebi bilo SPAMa jel sam resio problem