Problem sa /oruzje

13. Jun 2010.
1,265
pregleda
8
postova
mariomako
5
Underboss
13. Jun 2010.
Sta je ovde problem?

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd, "/oruzje", true) == 0)
{
    if(PlayerToPoint(5.0,playerid,1245.5746,902.7939,42.882😎)
    {
    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
Johnâ„¢
5
Godfather
13. Jun 2010.

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.
mariomako
5
Underboss
13. Jun 2010.
Johnâ„¢ wrote on June 13, 2010, 8:43 pm:

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
Johnâ„¢
5
Godfather
13. Jun 2010.

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.
mariomako
5
Underboss
13. Jun 2010.
Johnâ„¢ wrote on June 13, 2010, 8:49 pm:

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.882😎)
      {
        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;
}
Johnâ„¢
5
Godfather
13. Jun 2010.
Znaci sad sve radi?
Christian_Bojic
4
Enforcer
13. Jun 2010.
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; 
mariomako
5
Underboss
14. Jun 2010.
Moze LOCK da nebi bilo SPAMa jel sam resio problem

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha