Jump to content

Question

Posted

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15431) : error 017: undefined symbol "strtok"

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15431) : error 033: array must be indexed (variable "tmp")

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15469) : error 017: undefined symbol "strtok"

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15469) : error 033: array must be indexed (variable "tmp")

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15505) : error 017: undefined symbol "strtok"

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15505) : error 033: array must be indexed (variable "tmp")

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15667) : error 017: undefined symbol "strtok"

C:\Users\George\Desktop\fcrp\gamemodes\VFCRPv1.5.pwn(15667) : error 033:array must be indexed(variable "tmp")

1 answer to this question

Recommended Posts

Guest RockStar
Posted

strtok // bagal undeva in script

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}

Uitate la linia unde este tmp ala si vezi sa fie asa

new tmp[ 256 ]; // cu [ 256 ] sau alta masura .

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.