SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/05/2012, 02:15 PM   #1
ergan
Little Clucker
 
Join Date: Dec 2011
Posts: 27
Reputation: 2
Default ERROR WHILE COMPILING!

Code:
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 (c) 1997-2006, ITB CompuPhase


4 Errors.
and here line 32141
Code:
if(AccInfo[playerid][LoggedIn] == 1 && AccInfo[playerid][Level] >= 1)	{
what too doo plsssssss
__________________
Red&Black Gaming Server [3b]
ergan is offline   Reply With Quote
Old 13/05/2012, 02:16 PM   #2
Faisal_khan
High-roller
 
Faisal_khan's Avatar
 
Join Date: Feb 2012
Location: Ireland and India
Posts: 1,826
Reputation: 208
Default Re: ERROR WHILE COMPILING!

Paste some lines before it and after it.
__________________
Not a SAMP Dev. anymore.
Faisal_khan is offline   Reply With Quote
Old 13/05/2012, 02:17 PM   #3
mprofitt
Huge Clucker
 
Join Date: Jul 2008
Posts: 459
Reputation: 14
Default Re: ERROR WHILE COMPILING!

Look at the line above it.
mprofitt is offline   Reply With Quote
Old 13/05/2012, 02:19 PM   #4
ergan
Little Clucker
 
Join Date: Dec 2011
Posts: 27
Reputation: 2
Default Re: ERROR WHILE COMPILING!

Code:
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
__________________
Red&Black Gaming Server [3b]
ergan is offline   Reply With Quote
Old 13/05/2012, 02:22 PM   #5
mprofitt
Huge Clucker
 
Join Date: Jul 2008
Posts: 459
Reputation: 14
Default Re: ERROR WHILE COMPILING!

Quote:
Originally Posted by ergan View Post
Code:
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
....
mprofitt is offline   Reply With Quote
Old 13/05/2012, 02:24 PM   #6
kazekene
Little Clucker
 
kazekene's Avatar
 
Join Date: Oct 2009
Posts: 28
Reputation: 0
Default Re: ERROR WHILE COMPILING!

do it like this

Code:
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);
__________________
REP+ If I Helped you
----------------------------------------

Reality RolePlay
IP 81.71.143.138:7777
Forums http://realliferpg.tk/forum.php

-----------------------------------------
main server's feature Custom CIA Faction (With SafeHouses around San Andreas and new HQ at LV)


REP+ To HELP with this Server's DEVELOPMENT
kazekene is offline   Reply With Quote
Old 13/05/2012, 02:24 PM   #7
Faisal_khan
High-roller
 
Faisal_khan's Avatar
 
Join Date: Feb 2012
Location: Ireland and India
Posts: 1,826
Reputation: 208
Default Re: ERROR WHILE COMPILING!

Try this:
pawn Code:
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);
__________________
Not a SAMP Dev. anymore.
Faisal_khan is offline   Reply With Quote
Old 13/05/2012, 02:27 PM   #8
ergan
Little Clucker
 
Join Date: Dec 2011
Posts: 27
Reputation: 2
Default Re: ERROR WHILE COMPILING!

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


Code:
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
__________________
Red&Black Gaming Server [3b]
ergan is offline   Reply With Quote
Old 13/05/2012, 02:59 PM   #9
kazekene
Little Clucker
 
kazekene's Avatar
 
Join Date: Oct 2009
Posts: 28
Reputation: 0
Default Re: ERROR WHILE COMPILING!

Code:
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
__________________
REP+ If I Helped you
----------------------------------------

Reality RolePlay
IP 81.71.143.138:7777
Forums http://realliferpg.tk/forum.php

-----------------------------------------
main server's feature Custom CIA Faction (With SafeHouses around San Andreas and new HQ at LV)


REP+ To HELP with this Server's DEVELOPMENT
kazekene is offline   Reply With Quote
Old 13/05/2012, 03:11 PM   #10
ergan
Little Clucker
 
Join Date: Dec 2011
Posts: 27
Reputation: 2
Default Re: ERROR WHILE COMPILING!

SAME PROBLEM PLSS Help
__________________
Red&Black Gaming Server [3b]
ergan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error compiling TheArcher Scripting Help 2 07/04/2012 02:13 PM
[Help] Error when compiling niyaz Scripting Help 17 14/02/2012 10:27 AM
[HELP]Got Error in Compiling Kazuo Scripting Help 3 24/10/2011 11:24 PM
Compiling error danodanodano Help Archive 5 17/06/2011 09:17 AM
Compiling error StilThere Help Archive 3 31/05/2011 09:37 PM


All times are GMT. The time now is 02:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.