[Pomoc]Komanda /xgoto

Započeo Sanel Coralic
24. Mar. 2013. Zaključano
492
pregleda
3
postova
Asmir Hadzic
4
Shot Caller
24. Mar. 2013.
Skripta koju koristim:CLRP v2.0
Opis: ubacivo sam komandu xgoto i izbaci mi ove errore
C:\Users\Sanelko\Desktop\City Life RolePlay v2.0\gamemodes\CLRP.pwn(27436) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Sanelko\Desktop\City Life RolePlay v2.0\gamemodes\CLRP.pwn(27437) : error 017: undefined symbol "params"
C:\Users\Sanelko\Desktop\City Life RolePlay v2.0\gamemodes\CLRP.pwn(27444) : warning 217: loose indentation
C:\Users\Sanelko\Desktop\City Life RolePlay v2.0\gamemodes\CLRP.pwn(27446) : error 017: undefined symbol "SafeSetPlayerPos"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

2 Errors.

komanda koju sam ubacijo je ova
    if(strcmp(cmd, "/xgoto", true) == 0)
{
  if(PlayerInfo >= 5)
  {
  new Float:x, Float:y, Float:z;
      new string;
      if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "KoriÅ¡tenje: \"/xgoto \"");
      else
      {
          if(IsPlayerInAnyVehicle(playerid))
          {
              SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
        }
        else
        {
            SafeSetPlayerPos(playerid, x, y, z);
        }
          format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
          SendClientMessage(playerid, 0xBBBBBBAA, string);
      }
  }
    return 1;
}
sta nece da radi errori neki mi dolaze sta je ovo pomozite mi!!!

EDIT:errori su u ovim linijama dje je komanda stavita
Asmir Hadzic
4
Shot Caller
24. Mar. 2013.
Houston. wrote on March 24, 2013, 1:34 pm:
Nije ti u istom redu npr komanda.. Tebi je ovako:

if trol am i
      if im not

A mora biti:

if trol am i
if im not


nekontam kako de mi citavu komandu napisi nerazumijem plzz!!
Marko Koprivanac
5
Underboss
24. Mar. 2013.
Ti samo poravnaj u pawnu kako treba 🙂
 if(strcmp(cmd, "/xgoto", true) == 0)
{
                new Float:x, Float:y, Float:z;
      new string;
  if(PlayerInfo >= 5)
  {
      if (sscanf(cmd, "fff", x, y, z)) return SendClientMessage(playerid, 0xFF0000AA, "KoriÅ¡tenje: \"/xgoto \"");
      else
      {
          if(IsPlayerInAnyVehicle(playerid))
          {
              SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
        }
        else
        {
            SetPlayerPos(playerid, x, y, z);
        }
          format(string, sizeof(string), "Postavili ste koordinate na %f, %f, %f", x, y, z);
          SendClientMessage(playerid, 0xBBBBBBAA, string);
      }
  }
    return 1;
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha