[pomoc]errori

Započeo Quilound_Williams, Mart 19, 2012, 13:40:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Quilound_Williams

Skripta koju koristim:Balkan Nations edit
Detaljan opis problema:imam dva errora koja nmg rijesiti
D:\Users\Administrator\Desktop\Vezuvius\Vezuvius\gamemodes\RLRP.pwn(2460) : error 029: invalid expression, assumed zero
D:\Users\Administrator\Desktop\Vezuvius\Vezuvius\gamemodes\RLRP.pwn(2460) : error 008: must be a constant expression; assumed zero
D:\Users\Administrator\Desktop\Vezuvius\Vezuvius\gamemodes\RLRP.pwn(36473) : warning 204: symbol is assigned a value that is never used: "car"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Dio skripte:nez koje su linije ak mi mozete pomoci koje su pa cu vam dati
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

Snich

Postavi liniije: 2460 i 36473

Quilound_Williams

Citat: [FG] Snich poslato Mart 19, 2012, 13:44:04 POSLE PODNE
Postavi liniije: 2460 i 36473
ev iznad 2460 i ispod 2460
{
    "Bosnia: ~y~Ako ste primjetili citera ili bug prijavite to na /report takodje i na forum.",
    "Bosnia: ~y~Ako ste novi i trebate pomoc kucajte /new.",
    "Bosnia: ~y~Postujte Pravila i pravila ce postovati vas.",
    "Bosnia: ~y~Donacijom za nas server mozete dobiti mnoge pogodnosti.",
	
	
linija 2460 };

new Float:HelmetPos[][6] =

ev i 36473
ovo je 36473 linija new car = GetPlayerVehicleID(playerid);
						    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozes sam sebe cuffovati!"); return 1; }
						    if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
						    {
						        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
								GetPlayerName(playerid, sendername, sizeof(sendername));
						        format(string, sizeof(string), "%s ti je stavio lisice, sve dok ih on ne skine.", sendername);
								SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
								format(string, sizeof(string), "Stavio si lisice igracu %s.", giveplayer);
								SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
								format(string, sizeof(string), " %s vadi lisice i stavlja ih %s.", sendername ,giveplayer);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
								GameTextForPlayer(giveplayerid, "~r~Uhvacen", 2500, 3);
								TogglePlayerControllable(giveplayerid, 0);
								PlayerCuffed[giveplayerid] = 2;
								PlayerCuffedTime[giveplayerid] = 180;
						    }
						    else
						    {
						        SendClientMessage(playerid, COLOR_GREY, " Igrac nesmije biti u vasem vozilu!");
						        return 1;
						    }
						}
						else
						{
						    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije u tvojoj blizini !");
						    return 1;
						}
					}
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije online!");
				    return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "   Nisi policajac / FBI / National Guard !");
			}
		}
		return 1;
	}[code]

Snich

Za error stavi ovako:

{
    "Bosnia: ~y~Ako ste primjetili citera ili bug prijavite to na /report takodje i na forum.",
    "Bosnia: ~y~Ako ste novi i trebate pomoc kucajte /new.",
    "Bosnia: ~y~Postujte Pravila i pravila ce postovati vas.",
    "Bosnia: ~y~Donacijom za nas server mozete dobiti mnoge pogodnosti."	
};


Za warning stavi ovako:
Znaci samo izbacujes new car = GetPlayerVehicleID(playerid); jer skripta ocitava da ne koristi trenutnu varijablu i daje warning symbol is assigned a value that is never used: "car" ...

if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozes sam sebe cuffovati!"); return 1; }
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
{
	GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
	GetPlayerName(playerid, sendername, sizeof(sendername));
	format(string, sizeof(string), "%s ti je stavio lisice, sve dok ih on ne skine.", sendername);
        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
	format(string, sizeof(string), "Stavio si lisice igracu %s.", giveplayer);
	SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	format(string, sizeof(string), " %s vadi lisice i stavlja ih %s.", sendername ,giveplayer);
	ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	GameTextForPlayer(giveplayerid, "~r~Uhvacen", 2500, 3);
	TogglePlayerControllable(giveplayerid, 0);
	PlayerCuffed[giveplayerid] = 2;
	PlayerCuffedTime[giveplayerid] = 180;
}
else
{
	SendClientMessage(playerid, COLOR_GREY, " Igrac nesmije biti u vasem vozilu!");
	return 1;
}
	}
	else
	{
		SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije u tvojoj blizini !");
		return 1;
	}
}
	}
	else
	{
		SendClientMessage(playerid, COLOR_GREY, "   Taj igrac nije online!");
		return 1;
	}
		}
		else
		{
			SendClientMessage(playerid, COLOR_GREY, "   Nisi policajac / FBI / National Guard !");
		}
	}
	return 1;
}


Ajd pokusaj , pa mi javi rezultate ...
Poslednja Izmena: Mart 19, 2012, 14:08:21 POSLE PODNE od [FG] Snich