SA-MP Forums Archive
ERROR WHILE COMPILING! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ERROR WHILE COMPILING! (/showthread.php?tid=342320)



ERROR WHILE COMPILING! - ergan - 13.05.2012

Код:
C:\DOCUME~1\Home\Desktop\SATDM~~1\GAMEMO~1\SATDM_v9.pwn(32141) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Home\Desktop\SATDM~~1\GAMEMO~1\SATDM_v9.pwn(32141) : warning 215: expression has no effect
C:\DOCUME~1\Home\Desktop\SATDM~~1\GAMEMO~1\SATDM_v9.pwn(32141) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Home\Desktop\SATDM~~1\GAMEMO~1\SATDM_v9.pwn(32141) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Home\Desktop\SATDM~~1\GAMEMO~1\SATDM_v9.pwn(32141) : fatal error 107: too many error messages on one line

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


4 Errors.
and here line 32141
Код:
if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][Level] >= 1)	{
what too doo plsssssss


Re: ERROR WHILE COMPILING! - Faisal_khan - 13.05.2012

Paste some lines before it and after it.


Re: ERROR WHILE COMPILING! - mprofitt - 13.05.2012

Look at the line above it.


Re: ERROR WHILE COMPILING! - ergan - 13.05.2012

Код:
CMD:lpl(playerid,params[]) {
	new str[128];
	if (sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /lpl <Text>");
	if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][Level] >= 5)	{
		if (GetPlayerState(playerid) == 2)
		{
			new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);


lines before and above it


Re: ERROR WHILE COMPILING! - mprofitt - 13.05.2012

Quote:
Originally Posted by ergan
Посмотреть сообщение
Код:
CMD:lpl(playerid,params[]) {
	new str[128];
	if (sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /lpl <Text>");
	if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][Level] >= 5)	{
		if (GetPlayerState(playerid) == 2)
		{
			new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);


lines before and above it
....


Re: ERROR WHILE COMPILING! - kazekene - 13.05.2012

do it like this

Код:
CMD:lpl(playerid,params[]) {
	new str[128];
	if (sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /lpl <Text>");
	if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][pLevel] >= 5)	{
		if (GetPlayerState(playerid) == 2)
		{
			new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);



Re: ERROR WHILE COMPILING! - Faisal_khan - 13.05.2012

Try this:
pawn Код:
new str[128];
    if (sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /lpl <Text>")
    if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][Level] >= 5)   {
        if (GetPlayerState(playerid) == 2)
        {
            new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);



Re: ERROR WHILE COMPILING! - ergan - 13.05.2012

FAISAL it crash the pawno.....KAZEKENE same prob. wait post all script


Код:
CMD:lpl(playerid,params[]) {
	new str[128];
 	if(sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /lpl <Text>");
	if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][Level] >= 1)	{
		if (GetPlayerState(playerid) == 2)
		{
			new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);
	        switch(LModel) { case 448,461,462,463,468,471,509,510,521,522,523,581,586, 449: return SendClientMessage(playerid,red,"ERROR: You can not tune this vehicle"); }
			new Float:pos[3];
			SetVehicleNumberPlate(VehicleID, str);
			GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
			SetPlayerPos(playerid, pos[0]+1, pos[1], pos[2]);
			SetVehicleToRespawn(VehicleID);
			SetVehiclePos(VehicleID, pos[0], pos[1], pos[2]);
			SetTimerEx("TuneLCar",4000,0,"d",VehicleID);
			PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
			SendClientMessage(playerid, blue, "You have tuned your veh sucessful");   CMDMessageToAdmins(playerid,"LP");
		} else {
			SendClientMessage(playerid,red,"Error: You have to be the driver of a vehicle to mod it");
		}
	} else return SendClientMessage(playerid,red, "ERROR: You must be an administrator to use this command");
	return 1;
}
ps: pls dont steal it


Re: ERROR WHILE COMPILING! - kazekene - 13.05.2012

Код:
CMD:lpl(playerid,params[])
{
	new str[128];
 	if(sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "USAGE: /lpl <Text>");
	if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][Level] >= 1)
		{
		if (GetPlayerState(playerid) == 2)
			{
				new VehicleID = GetPlayerVehicleID(playerid), LModel = GetVehicleModel(VehicleID);
	        	switch(LModel) { case 448,461,462,463,468,471,509,510,521,522,523,581,586, 449: return SendClientMessage(playerid,red,"ERROR: You can not tune this vehicle"); }
				new Float:pos[3];
				SetVehicleNumberPlate(VehicleID, str);
				GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
				SetPlayerPos(playerid, pos[0]+1, pos[1], pos[2]);
				SetVehicleToRespawn(VehicleID);
				SetVehiclePos(VehicleID, pos[0], pos[1], pos[2]);
				SetTimerEx("TuneLCar",4000,0,"d",VehicleID);
				PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
				SendClientMessage(playerid, blue, "You have tuned your veh sucessful");   CMDMessageToAdmins(playerid,"LP");
			}
			 else
		 	{
			SendClientMessage(playerid,red,"Error: You have to be the driver of a vehicle to mod it");
			}
		}
		else return SendClientMessage(playerid,red, "ERROR: You must be an administrator to use this command");
	return 1;
}
pretty sure this will work as this


Re: ERROR WHILE COMPILING! - ergan - 13.05.2012

SAME PROBLEM PLSS Help