Započeo Stefan.pwn
•9. Sep. 2012.[Pitanje] String
460
pregleda
6
postova
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
32
Postovi:
15
Teme:
Pridružio se:Jul 2012
9. Sep. 2012.
Skripta koju korsitim: Moj edit
Problem: Zanima me nesto oko stringa.Cuo sam da on mnogo usporava igru pa me zanima po cemu da gledam koji string da stavim?Vidim da kod nekih komandi nema uopste stinga sad cu dati primer!
ovde ima string
Ovde ima string i koliko je ovde normalan da bude?
Problem: Zanima me nesto oko stringa.Cuo sam da on mnogo usporava igru pa me zanima po cemu da gledam koji string da stavim?Vidim da kod nekih komandi nema uopste stinga sad cu dati primer!
ovde ima string
CMD:xyzgoto(playerid, params[])
{
if(PlayerInfo >= 3)
{
new Float:x, Float:y, Float:z;
new string;
if (sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, COLOR_GREY, "Koriscenje: \"/xycgoto \"");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), x,y,z);
}
else
{
SetPlayerPos(playerid, x, y, z);
}
format(string, sizeof(string), "You've set your coord to %f, %f, %f", x, y, z);
SendClientMessage(playerid, 0xBBBBBBAA, string);
}
}
return 1;
}Ovde ima string i koliko je ovde normalan da bude?
CMD:pokreni(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo != 21)
{
SendClientMessage(playerid, COLOR_GREY, "Niste cistac ulica ! ");
return 1;
}
if(PlayerIsSweeping == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vec cistite ulice ! ");
return 1;
}
new idcar = GetPlayerVehicleID(playerid);
if(IsASweeper(idcar))
{
PlayerIsSweeping = 1;
TogglePlayerControllable(playerid, 1);
PlayerInfo = gSweeperPoints[cucp];
PlayerInfo = gSweeperPoints[cucp];
PlayerInfo = gSweeperPoints[cucp];
SetPlayerCheckpoint(playerid, PlayerInfo, PlayerInfo, PlayerInfo, 5.0);
SendClientMessage(playerid, COLOR_WHITE, " Vase radno vreme je pocelo. Idite na crveni marker.");
}
}
return 1;
}Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
32
Postovi:
15
Teme:
Pridružio se:Jul 2012
9. Sep. 2012.
razumem to al npr u 1.cmd najduzi red je 40slova texta koji se izbacuju i jer ja mogu tu da stavim string 40 bez razloga sto ta cmd ima jos redova od npr 10,15 slova?Jasnije da pitam kako da znam gde treba koji string?
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
32
Postovi:
15
Teme:
Pridružio se:Jul 2012
9. Sep. 2012.
Razumem to a jer onda moram ispred svakog texta koji se izbacuje na srw da staviom string.Posto sam naiso na cmd koja ima npr string 50 a jedna recenica ima oko 40 i plus ima dole 2-3 recenice koje nemaju svoj string?
Wheel Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
32
Postovi:
15
Teme:
Pridružio se:Jul 2012
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava