Jump to content
  • 0

Erori in pawno


MariaN47

Question

C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(124) : error 010: invalid function or declaration
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(132) : error 010: invalid function or declaration
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(731) : error 017: undefined symbol "leave_derby"
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(733) : warning 217: loose indentation
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(751) : error 017: undefined symbol "leave_derby"
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(759) : error 017: undefined symbol "leave_derby"
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(767) : error 017: undefined symbol "i"
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(770) : error 017: undefined symbol "i"
C:\Users\buloi\OneDrive\Desktop\Gamemode 0\gamemodes\gamemode.pwn(771) : error 017: undefined symbol "leave_derby"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

//linia 124function leave_derby(playerid){
	SetPlayerVirtualWorld(playerid, 0);
	SetVehicleVirtualWorld(derbyVehicle[playerid, 1337);
	SpawnPlayer(playerid);
	inDerby[playerid] = 0;
	derbyPlayers --;
	derbyVehicle[playerid] = 0;
//131	return 1;
}

	if(derbyStatus == 0) {
		if(derbyTime > 0) {
			derbyTime --;
			if(derbyPlayers <1){ 						//< 2
				foreach(new i : Player){
				//linia 731	if(inDerby[i] == 1) leave_derby(i), SendClientMessage(i, COLOR_YELLOW, "Prea putini jucatori.");
					}
					derbyStatus = 0;
					derbyTime = 30;
				}	
				else {
					derbyStatus = 1;
					derbyTime = 60;
					SendDerby(COLOR_YELLOW, "Runda a inceput!");
					foreach(new i : Player){
						if(inDerby[i]) TogglePlayerControllable(i, 1);
					}
				}
			}
		}
	if(derbyStatus == 1) {
		if(derbyTime > 0) {
			derbyTime --;
			if(derbyTime == 0) {
				foreach(new i : Player) {
	//linia 751				if(inDerby[i] == 1) leave_derby(i);
				}
				derbyStatus = 0;
				derbyTime = 30;
			}
			else {
				if(derbyPlayers == 0) { // == 1
					foreach(new i : Player){
		//linia 759				if(inDerby[i] == 1) leave_derby(i), SendClientMessage(i, COLOR_YELLOW, "Felicitari ai castigat!");
					}
					derbyStatus = 0;
					derbyTime = 30;
				}
			}
		}
	}
//linia 767	if(inDerby[i] == 1) {
		if(derbyStatus == 1) {
			new Float:Pozitie[3];
//linia 770			GetPlayerPos(i, Pozitie[0], Pozitie[1], Pozitie[2]);
// 771			if(Pozitie[2] < 150.49609) leave_derby(i);
		}
	}
	return 1;
}

 

Edited by MariaN47
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.