[ERROR]ReturnUse ayuda por favor
#5

xD solo se soluciono uno xD

Код:
C:\Documents and Settings\hakers.inc\Escritorio\San andreas\Los Angeles BY REGM Traducido\gamemodes\larp.pwn(11408) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\hakers.inc\Escritorio\San andreas\Los Angeles BY REGM Traducido\gamemodes\larp.pwn(11423) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\hakers.inc\Escritorio\San andreas\Los Angeles BY REGM Traducido\gamemodes\larp.pwn(15344) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\hakers.inc\Escritorio\San andreas\Los Angeles BY REGM Traducido\gamemodes\larp.pwn(15849) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\hakers.inc\Escritorio\San andreas\Los Angeles BY REGM Traducido\gamemodes\larp.pwn(16111) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\hakers.inc\Escritorio\San andreas\Los Angeles BY REGM Traducido\gamemodes\larp.pwn(16598) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\hakers.inc\Escritorio\San andreas\Los Angeles BY REGM Traducido\gamemodes\larp.pwn(19421) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
WARNING :

Код:
if (strcmp(cmd, "/buygun", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(GetPlayerMoney(playerid) < 1)
			{
			    SendClientMessage(playerid, COLOR_GREY, "   You dont have enough money with you !");
			    return 1;
			}
			new gun;
			new gunid[16];
			new gunstring1[256];
			new gunstring2[256];
			new gunstring3[256];
			new gunstring4[256];
			new gunstring5[256];
			new infostring[256];
			new guncharge;
			new ammocharge;
			new location = PlayerInfo[playerid][pLocal];
			if(location == 99 || location == 100 || location == 102)
			{
			    if(BizzInfo[location-99][bProducts] <= 0)
			    {
			        GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
					return 1;
			    }
				new mod = 100;
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					format(string, sizeof(string), "USAGE: /buygun [gunname] [ammoamount]");
					SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
					SendClientMessage(playerid, COLOR_WHITE,"*** Guns & Ammo ***");
					SendClientMessage(playerid, COLOR_GRAD2,string);
					format(gunstring1, 256, "Weapons: parachute ($%d) golfclub ($%d) nightstick ($%d) baseballbat ($%d) shovel ($%d) poolcue ($%d)",
					GunPrice[0][0]/100*mod,GunPrice[1][0]/100*mod,GunPrice[2][0]/100*mod,GunPrice[3][0]/100*mod,GunPrice[4][0]/100*mod,GunPrice[5][0]/100*mod,GunPrice[6][0]/100*mod);
					SendClientMessage(playerid, COLOR_GRAD3, gunstring1);
					format(gunstring2, 256, "Weapons: purpledildo ($%d) whitedildo ($%d) longwhitedildo ($%d) whitedildo2 ($%d) flowers ($%d) cane",
					GunPrice[7][0]/100*mod,GunPrice[8][0]/100*mod,GunPrice[9][0]/100*mod,GunPrice[10][0]/100*mod,GunPrice[11][0]/100*mod,GunPrice[12][0]/100*mod);
					SendClientMessage(playerid, COLOR_GRAD3, gunstring2);
					format(gunstring3, 256, "Weapons: sdpistol ($%d) deagle ($%d) mp5 ($%d)",
					GunPrice[13][0]/100*mod,GunPrice[14][0]/100*mod,GunPrice[15][0]/100*mod,GunPrice[16][0]/100*mod,GunPrice[17][0]/100*mod,GunPrice[18][0]/100*mod);
					SendClientMessage(playerid, COLOR_GRAD3, gunstring3);
					format(gunstring4, 256, "Weapons: shotgun ($%d) ak47 ($%d) m4 ($%d) rifle ($%d)",
					GunPrice[19][0]/100*mod,GunPrice[20][0]/100*mod,GunPrice[21][0]/100*mod,GunPrice[22][0]/100*mod,GunPrice[23][0]/100*mod,GunPrice[24][0]/100*mod);
					SendClientMessage(playerid, COLOR_GRAD3, gunstring4);
					format(gunstring5, 256, "Weapons: pistolammo ($%d) shotgunammo ($%d) smgammo ($%d) assaultammo ($%d) rifleammo ($%d)",
					GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]);
					SendClientMessage(playerid, COLOR_GRAD3, gunstring5);
					SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
					return 1;
				}
Tesoro!! donde estбs
Reply


Messages In This Thread
[ERROR]ReturnUse ayuda por favor - by GranaT3 - 02.01.2013, 20:37
Respuesta: [ERROR]ReturnUse ayuda por favor - by Fluid016 - 02.01.2013, 20:47
Respuesta: [ERROR]ReturnUse ayuda por favor - by GranaT3 - 02.01.2013, 20:55
Respuesta: [ERROR]ReturnUse ayuda por favor - by Fluid016 - 02.01.2013, 20:58
Respuesta: [ERROR]ReturnUse ayuda por favor - by GranaT3 - 02.01.2013, 21:07
Respuesta: [ERROR]ReturnUse ayuda por favor - by Fluid016 - 02.01.2013, 21:11
Respuesta: [ERROR]ReturnUse ayuda por favor - by GranaT3 - 02.01.2013, 21:22
Respuesta: [ERROR]ReturnUse ayuda por favor - by Fluid016 - 02.01.2013, 21:38
Respuesta: [ERROR]ReturnUse ayuda por favor - by GranaT3 - 02.01.2013, 22:02
Respuesta: [ERROR]ReturnUse ayuda por favor - by Fluid016 - 02.01.2013, 22:31

Forum Jump:


Users browsing this thread: 1 Guest(s)