Dio skripte:
CMD:call( playerid, params[] )
{
if(UlogovanProvera == 1)
{
//new tmp, strtok, cmdtext, idx, text;
tmp = strtok(text, idx);
if(!strlen(tmp))
{
ShowPlayerDialog(playerid, DIALOG_CALL, DIALOG_STYLE_LIST, "Test","1\n2\n3\n4","Odaberi","Zatvori");
return 1;
}Znaci izbacuje error 017 za: tmp, text, Kada uklonim komentar onaj gore za new tmp, izbaci erorr 001, 029 za "tmp = strtok(text, idx);"
Moguce da je i moj neki propust i da mi je stao mozak.
Evo ovao sto sam dodao za funkciju strtok, standard uzeo sa wiki
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index,
result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
