SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/03/2015, 07:09 PM   #1
MoroccanEyes
Little Clucker
 
Join Date: Aug 2013
Location: Maroc
Posts: 15
Reputation: 0
Default PROBLEM:Pawn Compile problem, ERROR

Hi, I was actually doing some updating GM? And when i compile a receive this:
Code:
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : warning 217: loose indentation
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : error 029: invalid expression, assumed zero
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : error 029: invalid expression, assumed zero
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9423) : 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.


This is the script:
Code:
Convoy_PlayerAllowed(playerid)
{
	// Make sure that the leader is a trucker
	if (APlayerData[playerid][PlayerClass] == ClassTruckDriver)
	{
		// Check if the player isn't a member of a convoy already
		if (APlayerData[playerid][InConvoy] == false)
		{
			// Make sure that the player hasn't started a job
			if (APlayerData[playerid][JobStarted] == false)
				return true; // The player is allowed to create or join a convoy
			}
			else
			    SendClientMessage(playerid, 0xFFFFFFFF, TXT_CannotJoinJobStarted);
		}
		else
		    SendClientMessage(playerid, 0xFFFFFFFF, TXT_ConvoyAllreadyJoined);
	}
	else
	    SendClientMessage(playerid, 0xFFFFFFFF, TXT_ConvoyNeedsTruckerClass);

	// If any condition wasn't true, the player isn't allowed to create or join a convoy
	return false;
}
MoroccanEyes is offline   Reply With Quote
Old 12/03/2015, 07:10 PM   #2
cnoopers
Huge Clucker
 
Join Date: Aug 2013
Posts: 425
Reputation: 7
Default Re: PROBLEM:Pawn Compile problem, ERROR

What is the line?
cnoopers is offline   Reply With Quote
Old 12/03/2015, 07:11 PM   #3
magcomputadores
Little Clucker
 
Join Date: Jul 2012
Location: Brasil
Posts: 43
Reputation: 2
Default Re: PROBLEM:Pawn Compile problem, ERROR

What is the line?
__________________

Hospedagem SA:MP | VPS | Dedicados | Revendas | SSL | Licenças e muito mais...!
www.maghost.net.br

Alojamiento SA:MP | VPS | Dedicados | Revendedores | SSL | Licencias y más...!
www.maghost.net.br/es/

Hosting SA-MP | VPS | Dedicated | Resellers | SSL | Licenses and more...!
www.maghost.net.br/us/
magcomputadores is offline   Reply With Quote
Old 12/03/2015, 07:14 PM   #4
MoroccanEyes
Little Clucker
 
Join Date: Aug 2013
Location: Maroc
Posts: 15
Reputation: 0
Default Re : PROBLEM:Pawn Compile problem, ERROR

9423, This is it.
MoroccanEyes is offline   Reply With Quote
Old 12/03/2015, 07:15 PM   #5
cnoopers
Huge Clucker
 
Join Date: Aug 2013
Posts: 425
Reputation: 7
Default Re: PROBLEM:Pawn Compile problem, ERROR

Code of that line!
cnoopers is offline   Reply With Quote
Old 12/03/2015, 07:16 PM   #6
MoroccanEyes
Little Clucker
 
Join Date: Aug 2013
Location: Maroc
Posts: 15
Reputation: 0
Default Re : PROBLEM:Pawn Compile problem, ERROR

HOW ?
MoroccanEyes is offline   Reply With Quote
Old 12/03/2015, 07:19 PM   #7
MoroccanEyes
Little Clucker
 
Join Date: Aug 2013
Location: Maroc
Posts: 15
Reputation: 0
Default Re : PROBLEM:Pawn Compile problem, ERROR



Sorry for double post.
MoroccanEyes is offline   Reply With Quote
Old 12/03/2015, 07:19 PM   #8
oliverrud
Huge Clucker
 
Join Date: Apr 2009
Location: Denmark
Posts: 415
Reputation: 24
Default Re: PROBLEM:Pawn Compile problem, ERROR

Check your TXT_ strings.
oliverrud is offline   Reply With Quote
Old 12/03/2015, 07:20 PM   #9
CalvinC
High-roller
 
CalvinC's Avatar
 
Join Date: Nov 2014
Location: Denmark
Posts: 1,830
Reputation: 114
Default Re: PROBLEM:Pawn Compile problem, ERROR

pawn Code:
if (APlayerData[playerid][JobStarted] == false)
    return true; // The player is allowed to create or join a convoy
}
else
    SendClientMessage(playerid, 0xFFFFFFFF, TXT_CannotJoinJobStarted);
You have 1 too many end braces, delete this one.
__________________
[Tutorial] Custom Playerdamage system
Desert Eagle's dealing too much damage, you want one-hit sniper kills, or damage based on body parts? Check this out.
CalvinC is offline   Reply With Quote
Old 12/03/2015, 07:24 PM   #10
MoroccanEyes
Little Clucker
 
Join Date: Aug 2013
Location: Maroc
Posts: 15
Reputation: 0
Default Re : PROBLEM:Pawn Compile problem, ERROR

But they wasn't any error when i DL this GameMode

Code:
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9417) : error 029: invalid expression, assumed zero
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9418) : warning 217: loose indentation
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9419) : error 029: invalid expression, assumed zero
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9420) : warning 217: loose indentation
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9420) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9420) : error 029: invalid expression, assumed zero
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9420) : error 029: invalid expression, assumed zero
C:\Users\Taleb\Desktop\ppc\gamemodes\PPC_Trucking.pwn(9420) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
When i delete it.
MoroccanEyes 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
PAWN Compile Error lisl Scripting Help 7 22/10/2012 03:10 PM
Help Pawn Error when i compile RicaNiel Scripting Help 7 10/02/2012 09:56 AM
Pawn Compile error Hyper NOS Help Archive 3 01/08/2011 05:41 AM
Pawn Compile Problem :S batuhan529 Help Archive 14 29/11/2009 07:39 PM
Problem with compile - irc error xuniter Help Archive 1 10/09/2009 08:04 PM


All times are GMT. The time now is 02:51 PM.


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