SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/11/2019, 12:18 AM   #1
vincentdineros24
Little Clucker
 
Join Date: Aug 2017
Location: (+63) PH - Caloocan City
Posts: 15
Reputation: 0
Default >>> Help Me Please <<<

Code:
	new string [30];

	format (string, sizeof (string), "{8EB2D6} [INFO] {FFFFFF}: You're not near a business entrance!");

	for (new i; i <MAX_BIZ; i ++)
	{
LINE:11082 >>       if (IsPlayerInRangeOfPoint (playerid, 2.0, bInfo [i] [ExtX], bInfo [i] [ExtY], bInfo [i] [ExtZ]))
     	{
	       	format (string, sizeof (string), "{8EB2D6} [INFO] {FFFFFF}: You're near business ID% d", i);
	    }
	}

	SendClientMessage (playerid, -1, string);

	return true;
}
ERROR
Code:
C: \ Users \ Administrator \ Desktop \ Fixed \ gamemodes \ HXRP.pwn (11082): error 028: invalid subscript (not an array or too many subscripts): "bInfo"
C: \ Users \ Administrator \ Desktop \ Fixed \ gamemodes \ HXRP.pwn (11082): warning 215: expression has no effect
C: \ Users \ Administrator \ Desktop \ Fixed \ gamemodes \ HXRP.pwn (11082): error 001: expected token: ";", but found "]"
C: \ Users \ Administrator \ Desktop \ Fixed \ gamemodes \ HXRP.pwn (11082): error 029: invalid expression, assumed zero
C: \ Users \ Administrator \ Desktop \ Fixed \ gamemodes \ HXRP.pwn (11082): 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.
Attached Images
File Type: png Error pawno.png (46.4 KB, 15 views)
__________________
+Rep me If I could help you.
http://imgur.com/lohCm6P
If I'm Getting Mad, Please Hide!

IP: 62.210.219.93:7774

Last edited by vincentdineros24; 15/11/2019 at 07:53 AM.
vincentdineros24 is offline   Reply With Quote
Old 15/11/2019, 04:27 AM   #2
Th3N0oB
Big Clucker
 
Join Date: Oct 2016
Location: Ecuador
Posts: 132
Reputation: 1
Default Re: >>> Help Me Please <<<

Quote:
And How To Put Background MUSIC While LOGIN What codes in PAWNO
https://wiki.sa-mp.com/wiki/PlayAudioStreamForPlayer
Th3N0oB is offline   Reply With Quote
Old 15/11/2019, 05:57 AM   #3
Jstylezzz
High-roller
 
Jstylezzz's Avatar
 
Join Date: Sep 2011
Location: Netherlands
Posts: 1,859
Reputation: 1571
Default Re: >>> Help Me Please <<<

About the compile error; From the code you posted it appears as if you have one too many closing brackets (just before SaveBizInfo). It might match up if the function is complete but for that we would need to see a little more of the code above the part you posted. If this is the problem, then removing the '}' above SaveBizInfo should move us ahead with the issue
Jstylezzz 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



All times are GMT. The time now is 03:11 PM.


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