Jump to content
  • 0

ajutori rezolvare erori


SaLiErY

Question

buna am copiat si eu fs cu automat radar in mod si imi da erorile de mai jos

C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(487) : error 017: undefined symbol "SavePlayerPosEnum"

C:\DOCUME~1\RaZvY\Desktop\GREENZ~1.PWN(487) : error 009: invalid array size (negative, zero or out of bounds)

linia 487

new SavePlayerPos[SLOTS][SavePlayerPosEnum];

va rog ajutatima

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

deci am rezolvat nu da erori nu da nimic dar am o problema am facut comanda in asea fel sa dea si punte de amenda si la 15 punte de amenda sa iti ia permisu dar nu stiu dc da dor la id 0 help me pls

uitati functia

stock AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{
	new fine[MAX_PLAYERS];
 	new str[256];
 	new giveplayerid;
 	new string[256];
 	new sendername[MAX_PLAYER_NAME];
    new result[20];
 	if(objectcreated!=maxobject)
  	{
    	CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10);
     	objectcreated++;
  	}
  	if((distance1[playerid])>speed)
  	{
		if(IsPlayerInCircle(playerid, xx, yy, radius)  && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)
		{
			fine[playerid]=((distance1[playerid]*17/10)-speed);
			GivePlayerMoney(playerid, -2000);
			format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]);
			SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Ai Primit Un Punct De Penalizare (La 15 Puncte De Penalizare Vei Pierde Permisu)");
			SendClientMessage(playerid, VERDEFRACO, str);
			PlayerInfo[giveplayerid][pCarLicPoint] += 1;
			if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15)
			{
			    format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare (Ai Acumulat 15 Puncte De Penalizare), reason: Viteza", sendername);
				SendClientMessage(giveplayerid, COLOR_ADMIN, string);
   				//format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare);
				//SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare");
 				PlayerInfo[giveplayerid][pCarLic] = 0;
				PlayerInfo[giveplayerid][pCarLicPoint] = 0;
				return 1;
			}
			PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
		}
	}
}

Link to comment
Share on other sites

deci am rezolvat nu da erori nu da nimic dar am o problema am facut comanda in asea fel sa dea si punte de amenda si la 15 punte de amenda sa iti ia permisu dar nu stiu dc da dor la id 0 help me pls

uitati functia

stock AddFlitsPaal(playerid, modelid, Float:xx, Float:yy, Float:zz, radius, speed)
{
	new fine[MAX_PLAYERS];
 	new str[256];
 	new giveplayerid;
 	new string[256];
 	new sendername[MAX_PLAYER_NAME];
    new result[20];
 	if(objectcreated!=maxobject)
  	{
    	CreateObject(modelid, xx, yy, zz, 0.0, 0.0, 10);
     	objectcreated++;
  	}
  	if((distance1[playerid])>speed)
  	{
		if(IsPlayerInCircle(playerid, xx, yy, radius)  && GetPlayerState(playerid)== PLAYER_STATE_DRIVER)
		{
			fine[playerid]=((distance1[playerid]*17/10)-speed);
			GivePlayerMoney(playerid, -2000);
			format(str,sizeof(str), "[RADAR] Limita de viteza este de %d KM/H tu ai mers cu %d KM/H si ai luat amenda!",speed, distance1[playerid] ,fine[playerid]);
			SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Ai Primit Un Punct De Penalizare (La 15 Puncte De Penalizare Vei Pierde Permisu)");
			SendClientMessage(playerid, VERDEFRACO, str);
			PlayerInfo[giveplayerid][pCarLicPoint] += 1;
			if(PlayerInfo[giveplayerid][pCarLicPoint] >= 15)
			{
			    format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare (Ai Acumulat 15 Puncte De Penalizare), reason: Viteza", sendername);
				SendClientMessage(giveplayerid, COLOR_ADMIN, string);
   				//format(string, sizeof(string), "Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare);
				//SendClientMessage(giveplayerid, COLOR_ADMIN, "[RADAR] Nu Mai Ai Permis Din Cauza Ca Ai Acumulat Puncte De Penalizare De (Ai Acumulat 15 Puncte De Penalizare");
 				PlayerInfo[giveplayerid][pCarLic] = 0;
				PlayerInfo[giveplayerid][pCarLicPoint] = 0;
				return 1;
			}
			PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
		}
	}
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.