SA-MP Forums Archive
Ayuda con estos errores - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Ayuda con estos errores (/showthread.php?tid=629324)



Ayuda con estos errores - ElvergitaLarga - 24.02.2017

Que tal gente, descarguй una GM y como vino la compile y sin modificar y me salta todo esto:

Quote:

D:\db\raven\larp.pwn(25115) : error 021: symbol already defined: "strtok"
D:\db\raven\larp.pwn(25130) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(26655) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(26715) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(2676 : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(27436) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(27495) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28176) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28204) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28215) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28275) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28544) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28571) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28601) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28609) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28643) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28651) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28684) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28729) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28792) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28850) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(2885 : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28893) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(28901) : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(2912 : error 047: array sizes do not match, or destination array is too small
D:\db\raven\larp.pwn(29182) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.




Respuesta: Ayuda con estos errores - nahum2003 - 24.02.2017

Eso debe ser ya que, tiene muchos errores. Si eres un scripter aprendiz, trata de al menos acomodar los bugs. O si no, verifica que tienes todos los Includes en tu Carpeta Includes.

Gracias por Leer


Re: Respuesta: Ayuda con estos errores - ElvergitaLarga - 24.02.2017

Que dices? Es la primera vez que me sale eso, por eso pregunto.
Sabes que es o solo comentas por comentar?


Respuesta: Ayuda con estos errores - !R1Ch@rD! - 24.02.2017

y las linea de los errores їporque no las pones?


Re: Respuesta: Ayuda con estos errores - ElvergitaLarga - 24.02.2017

Quote:
Originally Posted by !R1Ch@rD!
Посмотреть сообщение
y las linea de los errores їporque no las pones?
Si, aqui esta los errores y abajo las lineas:

Код:
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(26418) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(27093) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(27152) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(27833) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(27861) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(27872) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(27932) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28223) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28250) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28280) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28288) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28322) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28330) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28363) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28408) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28471) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28529) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28537) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28572) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28580) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28775) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28829) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(28882) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(29194) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(29247) : error 047: array sizes do not match, or destination array is too small
D:\db\Raven's Roleplay 0.3e  ENG Version 1.2\gamemodes\larp.pwn(29301) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.

Код:
(28322)tmp = strtok(cmdtext, idx);
(28330)tmp = strtok(cmdtext, idx);
(28363)tmp = strtok(cmdtext, idx);
(28408)tmp = strtok(cmdtext, idx);
Y asi en todos los CMD's, aca pongo un ejemplo de un CMD:

Код:
	if(strcmp(cmd, "/explode", true) == 0)
	{
		tmp = strtok(cmdtext, idx); //Linea que tira error en todos los cmds
		if(!strlen(tmp) && PlayerInfo[playerid][pAdmin] >= 4)
		{
			SendClientMessage(playerid, COLOR_GREY, "/explode [Playerid]");
			return 1;
		}
		giveplayerid = strval(tmp);
		GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
		if(IsPlayerConnected(giveplayerid))
		{
			if(PlayerInfo[playerid][pAdmin] >= 4)
			{
			    if(IsPlayerConnected(giveplayerid))
			    {
			        new targetlevel = PlayerInfo[giveplayerid][pAdmin];
					new playerlevel = PlayerInfo[playerid][pAdmin];
					if(targetlevel > playerlevel) return SendClientMessage(playerid, COLOR_GREY, "* You can not ban People that is higher Than You!");
      				if(giveplayerid != playerid && Untouchable[giveplayerid]) return SendClientMessage(playerid, COLOR_GREY, "* You Can't Do this on This player!");
					format(string, sizeof(string), "[ADMIN]: %s has exploded %s (%d).",sendername,giveplayer,giveplayerid);
					ABroadCast(COLOR_LIGHTRED,string, 5);
					format(string, sizeof(string), "You have Successfuly Exploded %s's (%d)",giveplayer,giveplayerid);
					SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
					format(string, sizeof(string), "Administrator %s Has Exploded You",sendername);
					SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string);
					new Float:boomx, Float:boomy, Float:boomz;
					GetPlayerPos(giveplayerid,boomx, boomy, boomz);
					CreateExplosion(boomx, boomy , boomz, 7, 1);
					new y, m, d;
					new h,mi,s;
					getdate(y,m,d);
					gettime(h,mi,s);
					format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Exploded to %s",d,m,y,h,mi,s,sendername,giveplayer);
					ExplodeLog(string);
					if (PlayerInfo[giveplayerid][pAchievement12] == 0)
					{
					    TextDrawSetString(Textdraw64[giveplayerid],"Congratulations! ~n~~n~You have earned the medal ~n~~b~Acme Dinamyte (12) ~n~~n~~w~you won ~g~$125");
	    				ShowAchievement(giveplayerid);
						SafeGivePlayerMoney(giveplayerid,125);
						PlayerInfo[giveplayerid][pAchievement12] = 1;
					}
				}
				else
				{
				    format(string, sizeof(string), "%d is not an active player.", giveplayerid);
					SendClientMessage(playerid, COLOR_RED, string);
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
			}
		}
		else
		{
		    SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
		}
		return 1;
	}