Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: [CRP]John poslato Oktobar 19, 2015, 21:53:54 POSLE PODNE

Naslov: [HELP]Errori.
Poruka od: [CRP]John poslato Oktobar 19, 2015, 21:53:54 POSLE PODNE
Skripta koju koristim: UP (CMD)
Detaljan opis problema: Errori
Dio skripte: http://pastebin.com/WnxbSQhP
Neke slike:
Naslov: Odg: [HELP]Errori.
Poruka od: ElectricityBoy poslato Oktobar 19, 2015, 22:21:53 POSLE PODNE
(dest[], const source[], maxlength = sizeof dest)

strcat(info, ""ORANGE""ORANGE"Cestitke postavljeni ste za Admina od strane OWNER-a "SIVA" %s \n",GetName(playerid));
            strcat(info, ""ORANGE"Vas Admin nivo:"SIVA" %d \n",level);
                strcat(info, ""ORANGE"PIN:"SIVA" %d \n",kod);

Valjda moraš koristit neki temp string u kojeg ćeš da formatiraš ove rečenice sa parametrima, pa da tek onda strcat taj temp string u info string
Naslov: Odg: [HELP]Errori.
Poruka od: LuKsA poslato Oktobar 20, 2015, 00:17:52 PRE PODNE
http://wiki.sa-mp.com/wiki/Strcat

Prouci ovo :) I sve ces saznati.
Naslov: Odg: [HELP]Errori.
Poruka od: [CRP]John poslato Oktobar 20, 2015, 20:36:00 POSLE PODNE
ako netko moze odradit ovo onak kako bi trebalo ic nek se javi u pm poslat cu mu cijelu cmd :)
Naslov: Odg: [HELP]Errori.
Poruka od: ElectricityBoy poslato Oktobar 20, 2015, 20:38:37 POSLE PODNE
[pawn]
strcat(info, ""ORANGE""ORANGE"Cestitke postavljeni ste za Admina od strane OWNER-a "SIVA" %s \n",GetName(playerid));
strcat(info, ""ORANGE"Vas Admin nivo:"SIVA" %d \n",level);
strcat(info, ""ORANGE"PIN:"SIVA" %d \n",kod);
[/pawn]
zamijeni sa
[pawn]
new temp[256];
format(temp, sizeof(temp), ""ORANGE""ORANGE"Cestitke postavljeni ste za Admina od strane OWNER-a "SIVA" %s \n",GetName(playerid));
strcat(info, temp);
format(temp, sizeof(temp), ""ORANGE"Vas Admin nivo:"SIVA" %d \n",level);
strcat(info, temp);
format(temp, sizeof(temp), ""ORANGE"PIN:"SIVA" %d \n",kod);
strcat(info, temp);
[/pawn]
Naslov: Odg: [HELP]Errori.
Poruka od: [CRP]John poslato Oktobar 20, 2015, 21:01:02 POSLE PODNE
Hvala [pawn]PUNO PUNO[/pawn]
Naslov: Odg: [HELP]Errori.
Poruka od: LuKsA poslato Oktobar 20, 2015, 21:57:15 POSLE PODNE
LOCK :)