[Pomoc] Kik


Započeo LoOdaK, Maj 01, 2015, 01:38:24 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:moja
Detaljan opis problema: napravio sam komandu i baca jedan error
Dio skripte: na ovoj liniji baca ovaj error expected token: ";", but found "-identifier-"
format(msg,sizeof(msg),"[KICK] %s je kikovan od strane Admina [Razlog:%s]", name,razlog);

Neke slike/video za lakse dobivanje pomoci(neobavezno):
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



pogledaj liniju iznad, negdje fali znak ;
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Evo cela komanda pa pogledajte
CMD:kick(playerid, params[])
{
	new id,razlog[64],msg[128],name[MAX_PLAYER_NAME];
	if(PlayerInfo[playerid][pAdmin] <= 2) return SCM(playerid, SIVA,"Niste ovlasceni da korsitite ovu komandu");
	else if(sscanf(params,"us[128]",id,razlog)) return SCM(playerid, SIVA,"Koristi: /kick [id] [razlog]");
	else
	{
		GetPlayerName(id,name,sizeof(name))
		format(msg,sizeof(msg),"[KICK] %s je kikovan od strane Admina [Razlog:%s]", name,razlog);
		SCMTA(0xFF3C4AFF,msg);
		SCM(playerid, RED,"[UB Administracija] Kikovani ste od strane Admina");
		Kick(id);
	}
	return 1;
}
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



CMD:kick(playerid, params[])
{
	new id,razlog[64],msg[128],name[MAX_PLAYER_NAME];
	if(PlayerInfo[playerid][pAdmin] <= 2) return SCM(playerid, SIVA,"Niste ovlasceni da korsitite ovu komandu");
	else if(sscanf(params,"us[128]",id,razlog)) return SCM(playerid, SIVA,"Koristi: /kick [id] [razlog]");
	else
	{
		GetPlayerName(id,name,sizeof(name));
		format(msg,sizeof(msg),"[KICK] %s je kikovan od strane Admina [Razlog:%s]", name,razlog);
		SCMTA(0xFF3C4AFF,msg);
		SCM(playerid, RED,"[UB Administracija] Kikovani ste od strane Admina");
		Kick(id);
	}
	return 1;
}

To sam resio hvala a da nebih otvarao novu temu imam jedan problem oko ubacivanja textdrawa evo tih textdrawowa
Login = TextDrawCreate(641.375000, 1.500000, "usebox");
	TextDrawLetterSize(Login, 0.000000, 49.396297);
	TextDrawTextSize(Login, 449.250000, 0.000000);
	TextDrawAlignment(Login, 1);
	TextDrawColor(Login, 0);
	TextDrawUseBox(Login, true);
	TextDrawBoxColor(Login, 102);
	TextDrawSetShadow(Login, 0);
	TextDrawSetOutline(Login, 0);
	TextDrawBackgroundColor(Login, -5963521);
	TextDrawFont(Login, 2);

	Login1 = TextDrawCreate(449.375000, 0.000000, "LD_SPAC:white");
	TextDrawLetterSize(Login1, 0.000000, 0.000000);
	TextDrawTextSize(Login1, 3.750000, 448.000000);
	TextDrawAlignment(Login1, 1);
	TextDrawColor(Login1, -5963521);
	TextDrawSetShadow(Login1, 0);
	TextDrawSetOutline(Login1, 0);
	TextDrawFont(Login1, 4);

	Login2 = TextDrawCreate(637.500000, 447.416687, "LD_SPAC:white");
	TextDrawLetterSize(Login2, 0.000000, 0.000000);
	TextDrawTextSize(Login2, 2.500000, -447.416687);
	TextDrawAlignment(Login2, 1);
	TextDrawColor(Login2, -5963521);
	TextDrawSetShadow(Login2, 0);
	TextDrawSetOutline(Login2, 0);
	TextDrawFont(Login2, 4);

	Login3 = TextDrawCreate(492.500000, 77.583267, "Vlasnik: Dolke");
	TextDrawLetterSize(Login3, 0.449999, 1.600000);
	TextDrawAlignment(Login3, 1);
	TextDrawColor(Login3, -5963521);
	TextDrawSetShadow(Login3, 0);
	TextDrawSetOutline(Login3, 1);
	TextDrawBackgroundColor(Login3, 51);
	TextDrawFont(Login3, 1);
	TextDrawSetProportional(Login3, 1);

	Login4 = TextDrawCreate(488.750000, 148.750000, "Skripter: Dolke");
	TextDrawLetterSize(Login4, 0.449999, 1.600000);
	TextDrawAlignment(Login4, 1);
	TextDrawColor(Login4, -5963521);
	TextDrawSetShadow(Login4, 0);
	TextDrawSetOutline(Login4, 1);
	TextDrawBackgroundColor(Login4, 51);
	TextDrawFont(Login4, 1);
	TextDrawSetProportional(Login4, 1);

	Login5 = TextDrawCreate(535.000000, 432.249938, "Version: 0.2");
	TextDrawLetterSize(Login5, 0.449999, 1.600000);
	TextDrawAlignment(Login5, 1);
	TextDrawColor(Login5, -5963521);
	TextDrawSetShadow(Login5, 0);
	TextDrawSetOutline(Login5, 1);
	TextDrawBackgroundColor(Login5, 51);
	TextDrawFont(Login5, 1);
	TextDrawSetProportional(Login5, 1);

	Login6 = TextDrawCreate(486.250000, 12.249996, "Ultra Balkan");
	TextDrawLetterSize(Login6, 0.587500, 2.527500);
	TextDrawTextSize(Login6, 66.875000, 207.083358);
	TextDrawAlignment(Login6, 1);
	TextDrawColor(Login6, -5963521);
	TextDrawSetShadow(Login6, 0);
	TextDrawSetOutline(Login6, 1);
	TextDrawBackgroundColor(Login6, 51);
	TextDrawFont(Login6, 1);
	TextDrawSetProportional(Login6, 1);

	Login7 = TextDrawCreate(491.875000, 232.166687, "Uzivajte u igri");
	TextDrawLetterSize(Login7, 0.449999, 1.600000);
	TextDrawAlignment(Login7, 1);
	TextDrawColor(Login7, -2147483393);
	TextDrawSetShadow(Login7, 0);
	TextDrawSetOutline(Login7, 1);
	TextDrawBackgroundColor(Login7, 51);
	TextDrawFont(Login7, 1);
	TextDrawSetProportional(Login7, 1);

	Login8 = TextDrawCreate(539.375000, 261.916564, "na");
	TextDrawLetterSize(Login8, 0.449999, 1.600000);
	TextDrawAlignment(Login8, 1);
	TextDrawColor(Login8, -2147483393);
	TextDrawSetShadow(Login8, 0);
	TextDrawSetOutline(Login8, 1);
	TextDrawBackgroundColor(Login8, 51);
	TextDrawFont(Login8, 1);
	TextDrawSetProportional(Login8, 1);

	Login9 = TextDrawCreate(470.000000, 307.999969, "Ultra Balkan serveru");
	TextDrawLetterSize(Login9, 0.449999, 1.600000);
	TextDrawAlignment(Login9, 1);
	TextDrawColor(Login9, -2147483393);
	TextDrawSetShadow(Login9, 0);
	TextDrawSetOutline(Login9, 1);
	TextDrawBackgroundColor(Login9, 51);
	TextDrawFont(Login9, 1);
	TextDrawSetProportional(Login9, 1);

a ovako sam definisao
new Text:Login;
new Text:Login1;
new Text:Login2;
new Text:Login3;
new Text:Login4;
new Text:Login5;
new Text:Login6;
new Text:Login7;
new Text:Login8;
new Text:Login9;

KADA KRENEM COMPILE NE IZBACUJE NISTA SAMO STOJI ONAKO PROZOR COMPILA
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Gdje si stavio definicije a gdje TDove?

pa definicije idu new  ;) a td OnGameModeInit
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Znam kako idu definicije nego je li ih stavljas prije publica OnGameModeInit?

Da gore negdje blizu pocetka sam sebi oznacio news i tu stavljam new-ove
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



jesi siguran da je u tome problem, probaj to maknit pa vidi
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Evo brate obrisao sam newove i textdraw i TextdrawHide i TextdrawShow od tih TD-ova i normalno skripta compile
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



jel koristis mozda zagrade negdje kad ubacujes textdrawe
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

Greska!!
|
|
|
Poslednja Izmena: Maj 02, 2015, 19:19:30 POSLE PODNE od =- Dolke -=
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Ide mi ovako
public OnGameModeInit()
{
//------------------------------------------------------------------------------
  {
   TD
   TD
  }
}
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!





Molimo te da procitas pravila foruma te da onda otvoris temu po pravilima.

Razlog zakljucavanja:
BUMP smije se raditi svaka 24 sata.. Inace ovako bi trebalo ic
public OnGameModeInit()
{
//------------------------------------------------------------------------------
 
   TD
   TD

}


Razgovor u vezi PAWN-Skriptanja .
~ Server Pernambucho Roleplay ~
Forum : ~ http://pernambucho.com/ ~
Facebook :~ https://www.facebook.com/events/331686430351597 ~

Owner : JA :D