see what wrong
#1

Hi im getting all thm errors when a {/} is wrong but it looks fine to me


Код:
public OnPlayerSpawn(playerid)
{
  GangZoneShowForPlayer(playerid, Ear ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, Airfield ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, Resturant ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, Oil ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, A ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, Gas ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, OS ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, T ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, D ,GCOLOR_GREEN);
	GangZoneShowForPlayer(playerid, OT ,GCOLOR_GREEN);
	return 1;
}
	if(GeneralClass[playerid][1] == 1 || GeneralClass[playerid][2] == 1 || GeneralClass[playerid][3] == 1 || GeneralClass[playerid][4] == 1)
	{
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, Ear ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, Airfield ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, Resturant ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, Oil ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, A ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, Gas ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, OS ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, T ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, D ,GCOLOR_GREEN);
    GangZoneShowForPlayer(playerid, OT ,GCOLOR_GREEN);
    if(GeneralClass[playerid][1] == 1 || GeneralClass[playerid][2] == 1 || GeneralClass[playerid][3] == 1 || GeneralClass[playerid][4] == 1) {
        // Rest of the IF statement...
    }
    return 1;
}
Only thing I can see wrong is that the IF statement isn't in the public function.
Reply
#3

think you mit of just done it lol it compild test see if zons come up now XD thanks for your help.
Reply
#4

Works pefct thankyou for your help

A.Manchester
Reply
#5

Glad to help.

-Conroy.
Reply
#6

If you want some criedit for your help ill add some somewhre mybe on forums if you want.
Reply
#7

Don't worry about it. I'm just helping people out. No need for credits.

-Conroy.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)