Jump to content
  • 0

Erroare


Unique

Question

Am incercat sa adaug 2 comenzi in GameMode-ul JustGame si imi da urmatoarele errori :

C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14156) : error 017: undefined symbol "eventenabled"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14158) : error 017: undefined symbol "pickup_event"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14159) : error 017: undefined symbol "evex"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14159) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14160) : error 017: undefined symbol "evey"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14160) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14161) : error 017: undefined symbol "evez"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14161) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14162) : error 017: undefined symbol "eventenabled"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14162) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14163) : error 017: undefined symbol "interiorevent"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14164) : error 017: undefined symbol "virtuallevent"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14171) : error 017: undefined symbol "pickup_event"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14172) : error 017: undefined symbol "evex"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14172) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14173) : error 017: undefined symbol "evey"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14173) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14174) : error 017: undefined symbol "evez"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14174) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14175) : error 017: undefined symbol "eventenabled"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14175) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14176) : error 017: undefined symbol "interiorevent"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14176) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14177) : error 017: undefined symbol "virtuallevent"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14177) : warning 215: expression has no effect
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14185) : error 017: undefined symbol "AdminOnly"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14192) : error 017: undefined symbol "pPaintBallG"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14195) : error 017: undefined symbol "eventenabled"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14197) : error 017: undefined symbol "interiorevent"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14198) : error 017: undefined symbol "virtuallevent"
C:\Users\George\Desktop\Power-Game's\gamemodes\JG.pwn(14199) : error 017: undefined symbol "SetPlayerPosEx"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


21 Errors.

Comenzile sunt 


CMD:placegotoevent(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
 	{
 	    new Float:x, Float:y, Float:z, sendername[25], string[256];
     	GetPlayerName(playerid, sendername, sizeof(sendername));
		GetPlayerPos(playerid, x, y, z);
 	    if(!eventenabled)
	    {
   			pickup_event = CreatePickup(1314, 23, x, y, z, GetPlayerVirtualWorld(playerid));
   			evex = x;
   			evey = y;
   			evez = z;
   			eventenabled = 1;
   			interiorevent = GetPlayerInterior(playerid);
		   	virtuallevent = GetPlayerVirtualWorld(playerid);
   			format(string, sizeof(string), "(( Info: Admin %s activated event teleport, type /gotoevent. ))", sendername);
			SendClientMessageToAll(COLOR_LIGHTRED,string);
			return 1;
		}
		else
		{
			DestroyPickup(pickup_event);
			evex = 0.0;
			evey = 0.0;
			evez = 0.0;
			eventenabled = 0;
			interiorevent = 0;
			virtuallevent = 0;
			format(string, sizeof(string), "(( Info: Admin %s deactivated event teleport. ))", sendername);
			SendClientMessageToAll(COLOR_LIGHTRED,string);
		}
		return 1;
	}
	else
	{
 		SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
	}
	return 1;
}
CMD:gotoevent(playerid, params[])
{
    if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(PlayerInfo[playerid][pPaintBallG] > 0) return SendClientMessage(playerid, COLOR_WHITE, "You can't use this command at Paintball.");
	if(IsPlayerConnected(playerid))
	{
	    if(eventenabled)
	    {
	        SetPlayerInterior(playerid, interiorevent);
	        SetPlayerVirtualWorld(playerid, virtuallevent);
			SetPlayerPosEx(playerid, evex, evey, evez);
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have been teleported at event.");
		}
		else return SendClientMessage(playerid, COLOR_LIGHTRED, "No event teleport activated.");
	}
	return 1;
}

Aveti idee ce sa fac ?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
La 29.04.2016 la 21:55, Extremys a spus:

Iti recomand sa definestii toate erorile la care scrie:


error 017: undefined symbol "virtuallevent"

 

Edited by Uzzi25

2c4AJX1.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.