[Pitanje] String

Započeo Stefan.pwn
9. Sep. 2012.
437
pregleda
6
postova
Stefan.pwn
3
Wheel Man
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
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;
}
Stefan.pwn
3
Wheel Man
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?
Stefan.pwn
3
Wheel Man
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?
Stefan.pwn
3
Wheel Man
9. Sep. 2012.
Ali sta je jedan string? Ako jednu celu cmd copy ispadne 600-700?
Deleted User
Obrisan korisnik
9. Sep. 2012.
Postaš samo između navodnih znakova " "

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha