Ladmin:L
#1

Heey guys,
I am back to pawno u all:P
I have a problem with ladmin. I want to add more in ladmin but if i download ladmin and compile i get errors:S
How can i fix it?

Need help,....:L
Reply
#2

Show us an errors?
Reply
#3

Have you downloaded the most recent sa-mp server? Or do you have the includes it requires?

http://sa-mp.com/download.php

Also, it would be helpful if you told us the errors.
Reply
#4

Quote:
Originally Posted by Norck
Посмотреть сообщение
Show us an errors?
C:\Users\Brandon\Desktop\LAdmin4v2\LAdmin4v2\filte rscripts\ladmin4v2.pwn(1084) : error 017: undefined symbol "strtok"
C:\Users\Brandon\Desktop\LAdmin4v2\LAdmin4v2\filte rscripts\ladmin4v2.pwn(1084) : error 033: array must be indexed (variable "tmp3")
C:\Users\Brandon\Desktop\LAdmin4v2\LAdmin4v2\filte rscripts\ladmin4v2.pwn(1084) : warning 203: symbol is never used: "Index"
Reply
#5

Wtf is this error:P?
Reply
#6

I use a majorly edited version of LAdmin that I edited myself, but for those errors, can we see the lines ?
Reply
#7

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
I use a majorly edited version of LAdmin that I edited myself, but for those errors, can we see the lines ?
here are the lines:
Код:
new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index), tmp3 = strtok(params,Index);
Reply
#8

You should have this stock in the script:

pawn Код:
stock strtok(const string[], &idx)
{
    new length = strlen(string);
    while ((idx < length) && (string[idx] <= ' '))
    {
        idx++;
    }
    new offset = idx;
    new result[128];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
        result[idx - offset] = string[idx];
        idx++;
    }
    result[idx - offset] = EOS;
    return result;
}
Look for it, if it is not there or commented out, uncomment it or add the above one to the bottom of LAdmin.

I have no idea for the error "array must be indexed: (variable tmp3)"
Reply
#9

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
You should have this stock in the script:

pawn Код:
stock strtok(const string[], &idx)
{
    new length = strlen(string);
    while ((idx < length) && (string[idx] <= ' '))
    {
        idx++;
    }
    new offset = idx;
    new result[128];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
        result[idx - offset] = string[idx];
        idx++;
    }
    result[idx - offset] = EOS;
    return result;
}
Look for it, if it is not there or commented out, uncomment it or add the above one to the bottom of LAdmin.

I have no idea for the error "array must be indexed: (variable tmp3)"
PMG thanks dude!worked 100%! Rep for u+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)