Jump to content

Question

Posted

D:\X\Y\Z\gamemodes\GameMode.pwn(10304) : error 021: symbol already defined: "strtok"
D:\X\Y\Z\gamemodes\GameMode.pwn(10319) : error 047: array sizes do not match, or destination array is too small
D:\X\Y\Z\gamemodes\GameMode.pwn(12741) : warning 219: local variable "mod" shadows a variable at a preceding level
D:\X\Y\Z\gamemodes\GameMode.pwn(22942) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Linia : 10304
strtok(const string[], &index)
{
Linia 10319
	return result;
}
Linia 12741
				new mod = 100;
				tmp = strtok(cmdtext, idx);
Linia 22942
	        x_nr = strtok(cmdtext, idx);
	        if(!strlen(x_nr))

Am pus cate 2 linii ca sa se poata vedea mai multe detalii

2 answers to this question

Recommended Posts

Posted

10304 sterge strtok ca e definit!

linia 12741 - modifica peste to mod cu mod1 si new mod = new mod1 = 100;

linia 22942 pune la new x_nr[64]; sau mai mare de 64!

 

Posted

Am pus la linia 22942 cum ai spus si tot asa da.

Linia 12741 = merge

10304 = Cand Sterg strtok dupa ce dau compile se da don't sent , de fiecare data :|

Edit : Mai am problema doar la linia 22942 !

Edit : Acum merge , trebuia in loc de 64 sa pun 256 m-au salvat cei de pe .com

Multumesc pentru ajutor la celalate :)

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.