martuyyy 0 Odesláno: 11. Květen, 2015 Share Odesláno: 11. Květen, 2015 Dobrý den,při kompilování na mě vyskočilo toto,a já ani za mák nevím co s tím je :/ D:\XX\stunt.pwn(205) : error 021: symbol already defined: "strtok" D:\XX\stunt.pwn(220) : error 047: array sizes do not match, or destination array is too small na řádku 205 je { (řádek před ním je toto) strtok(const string[], &index) na řádku 20 je return result; hledal jsem a nejspíš by to mělo být něco s includy (mám tyto) #include <a_samp> #include <F_AntiCheat> #include <core> #include <float> #include <CPLoader> #include <Seifader> Link to comment Share on other sites More sharing options...
Om3n 78 Odesláno: 11. Květen, 2015 Share Odesláno: 11. Květen, 2015 celou funkci strtok u radku 205 si odstran. "symbol already defined: "strtok"" ="symbol již nadefinován: "strtok"" ohledne radku 220 v jaky funkci je ten return result;? Link to comment Share on other sites More sharing options...
martuyyy 0 Odesláno: 11. Květen, 2015 Author Share Odesláno: 11. Květen, 2015 ta část vypadá takto 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; } Link to comment Share on other sites More sharing options...
Globální moderátor Hip 191 Odesláno: 11. Květen, 2015 Globální moderátor Share Odesláno: 11. Květen, 2015 celé to odstraň Link to comment Share on other sites More sharing options...
martuyyy 0 Odesláno: 11. Květen, 2015 Author Share Odesláno: 11. Květen, 2015 celé to odstraň děkuji,pomohlo :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now