ZCMD error
#1

Код:
CMD:exit(playerid, params[])
{
	    if(GetPlayerTeam(playerid) == TEAM_GROVE)
		{
		    SetPlayerPos(playerid, 2514.8130,-1674.3113,13.7020);
		    SetPlayerInterior(playerid, 0);
		}
		if(GetPlayerTeam(playerid) == TEAM_BALLAS)
		{
		    SetPlayerPos(playerid, 2014.1774,-1740.4828,13.5469);
		    SetPlayerInterior(playerid, 0);
		{
		if(GetPlayerTeam(playerid) == TEAM_VAGOS)
		{
		    SetPlayerPos(playerid, 2541.5249,-1033.1189,69.5793);
		    SetPlayerInterior(playerid, 0);
		}
		if(GetPlayerTeam(playerid) == TEAM_AZTECS)
		{
		    SetPlayerPos(playerid, 1715.0638,-2124.4746,14.0566);
		    SetPlayerInterior(playerid, 0);
		}
	}
	return 1;
}
Код:
C:\Users\Administrator\Desktop\ByVerlaj\gamemodes\Zone.pwn(1376) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\ByVerlaj\gamemodes\Zone.pwn(1376) : error 017: undefined symbol "cmd_cuff"
C:\Users\Administrator\Desktop\ByVerlaj\gamemodes\Zone.pwn(1376) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\ByVerlaj\gamemodes\Zone.pwn(1376) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

It isnt about that, You need to show us the command cuff and cmd_cuff
Reply
#3

You should remove the last bracket, like this:
Код:
CMD:exit(playerid, params[])
{
	        if(GetPlayerTeam(playerid) == TEAM_GROVE)
		{
		    SetPlayerPos(playerid, 2514.8130,-1674.3113,13.7020);
		    SetPlayerInterior(playerid, 0);
		}
		if(GetPlayerTeam(playerid) == TEAM_BALLAS)
		{
		    SetPlayerPos(playerid, 2014.1774,-1740.4828,13.5469);
		    SetPlayerInterior(playerid, 0);
		{
		if(GetPlayerTeam(playerid) == TEAM_VAGOS)
		{
		    SetPlayerPos(playerid, 2541.5249,-1033.1189,69.5793);
		    SetPlayerInterior(playerid, 0);
		}
		if(GetPlayerTeam(playerid) == TEAM_AZTECS)
		{
		    SetPlayerPos(playerid, 1715.0638,-2124.4746,14.0566);
		    SetPlayerInterior(playerid, 0);
		}
        return 1;
}
@Above: ? Are you noob? he need to remove 1 bracket :doubletripleepicfacepalm: you know everything on Pawno, ye ye go study it
The error goes on cmd_cuff because Pawno can't find the open bracket! wich is closed!
Reply
#4

I were actually only reading this
Quote:

cmd_cuff

Reply
#5

DON'T COPY THIS!
Код:
CMD:exit(playerid, params[])
{
	    if(GetPlayerTeam(playerid) == TEAM_GROVE)
	    {
                 //CODE, PLS DON'T COPY!
            }
	}
	return 1;
}
This means there are a missing opened brackets, look under:
Код:
{
     {
     }
   }
}
:P
Reply
#6

i think problem is with
Quote:

if(GetPlayerTeam(playerid) == TEAM_VAGOS)

Reply
#7

nvm i've fixed the problem, but thanks in advance
Reply
#8

Add zcmd in Pawno > Include(s)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)