Započeo Sanel Coralic
•24. Mar. 2013.• Zaključano[Pomoc]Komanda /xgoto
505
pregleda
3
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
148
Postovi:
47
Teme:
Pridružio se:Sep. 2012
24. Mar. 2013.
Skripta koju koristim:CLRP v2.0
Opis: ubacivo sam komandu xgoto i izbaci mi ove errore
komanda koju sam ubacijo je ova
EDIT:errori su u ovim linijama dje je komanda stavita
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
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
148
Postovi:
47
Teme:
Pridružio se:Sep. 2012
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
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!!
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
688
Postovi:
52
Teme:
Pridružio se:Jan. 2012
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