Jump to content
  • 0

Problema comanda /spec


tantan_andrey

Question

Salut. Am si eu o problema:(. Am bagat si eu comanda /specplayeri:(( si imi da urmatoarele erori/warning-uri:((:

C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : warning 217: loose indentation
C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : error 012: invalid function call, not a valid address
C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : warning 215: expression has no effect
C:\Documents and Settings\AnD\Desktop\XtremeZone\XtremeZone\gamemodes\GM.pwn(19345) : error 028: invalid subscript (not an array or too many subscripts): "params"
C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : error 029: invalid expression, assumed zero
C:\Documents and Settings\AnD\Desktop\XtremeZone\GM\gamemodes\GM.pwn(19345) : fatal error 107: too many error messages on one line
Comanda este:
dcmd_specplayer(playerid, params[])
{
	new Giveplayerid, Name[256], String[256], Name2[256];
	if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 4)
	{
	if (sscanf(params, "d", Giveplayerid)) SendClientMessage(playerid,COLOR_WHITE, "SERVER: /specplayer [Playerid]");
	else if (!IsPlayerConnected(Giveplayerid)) SendClientMessage(playerid,COLOR_PURPLE,"Player not connected?");
	else
	{
	if ( Specing[Giveplayerid] == 1 )
	{
	SendClientMessage(playerid, COLOR_RED, "   The person you have tried to spec is spectating someone else.");
	}
	else
	{
    GetPlayerName(playerid, Name, 256);
	GetPlayerName(Giveplayerid, Name2, 256);
	format(String, 256, "[%i] %s is now spectating [%i] %s",playerid, Name,Giveplayerid, Name2);
	CallLocalFunction("ircRemoteSay", "iss", 1, "#FSE", String);
	Specing[playerid] = 1;
	}
	if ( !IsPlayerInAnyVehicle(Giveplayerid) )
	{
	TogglePlayerSpectating(playerid, 1);
	PlayerSpectatePlayer(playerid, Giveplayerid);
	SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid));
	SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid));
	return 1;
	}
	else
	{
	TogglePlayerSpectating(playerid, 1);
	PlayerSpectateVehicle(playerid, GetPlayerVehicleID(Giveplayerid));
	SetPlayerInterior(playerid,GetPlayerInterior(Giveplayerid));
	SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(Giveplayerid));
	return 1;
	}
 	}
	}
	return 1;
}

dcmd_specoff(playerid, params[])
{
	#pragma unused params
	TogglePlayerSpectating(playerid, 0);
	Specing[playerid] = 0;
	return 1;
}

Sa iti dea Deumnezeu sanatate TzAkS

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.