SA-MP Forums Archive
[HELP]Scripting... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Scripting... (/showthread.php?tid=316102)



[HELP]Scripting... - adamic2020 - 05.02.2012

Код:
C:\Users\USER\Desktop\[BFR]Balkan FreeRoam\gamemodes\myscript.pwn(1038) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\USER\Desktop\[BFR]Balkan FreeRoam\gamemodes\myscript.pwn(1665) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
pliz help i have error


Re: [HELP]Scripting... - milanosie - 05.02.2012

Update your includes to 0.3D


Re: [HELP]Scripting... - Konstantinos - 05.02.2012

Upgrade your Server/Client to SA-MP 0.3d
For the second error add the strtok at the bottom of your script.
pawn Код:
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;
}



Re: [HELP]Scripting... - adamic2020 - 05.02.2012

thainks!