Jump to content
  • 0

Problema Startradar


Marusky

Question

C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22321) : error 017: undefined symbol "gPlayerLogged"
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22321) : warning 215: expression has no effect
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22321) : error 001: expected token: ";", but found "]"
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22321) : error 029: invalid expression, assumed zero
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22321) : fatal error 107: too many error messages on one line

Si aici se afla si comanda /startradar si /stopradar

https://pastebin.com/du52AGjs

Edited by Marusky
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

CMD:startradar(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
		if(PlayerInfo[playerid][pMember] != 1) return SCM(playerid,COLOR_WHITE, "ERROR: You are not a officer.");
		if(OnDuty[playerid] != 1) return SendClientMessage(playerid,COLOR_WHITE, "ERROR: You are not on Duty.");
		new tmpcar = GetPlayerVehicleID(playerid);
		new ccar = IsPlayerInAnyVehicle(playerid);
		if(ccar && IsACopCar(tmpcar) || ccar && IsANgCar(tmpcar) || ccar && IsAFbiCar(tmpcar))
		{
			if(Radaron[playerid] == 1) return SCM(playerid,COLOR_WHITE, "ERROR: You have active radar.");
			new viteza,string[128];
			if(sscanf(params, "d",viteza)) return SCM(playerid,COLOR_GREY, "Folosire: {FFFFFF}/startradar <Speed Limit>");
			if(viteza > 199 || viteza < 50) return SCM(playerid,COLOR_WHITE, "Error: Invalid speedlimit (50-199).");
			Radaron[playerid] = 1;
			Radarlimit[playerid] = viteza;
			TogglePlayerControllable(playerid, 0);
			format(string,sizeof(string),"{FFFF00}Radar has been activated. Speedlimit is now: %d KM/H.",viteza);
			SCM(playerid,COLOR_WHITE,string);
			return 1;
		}
		else return SCM(playerid,COLOR_WHITE, "Error: You are not in the cop car.");
	}
	return 1;
}
CMD:stopradar(playerid, params[])
{
	if(IsPlayerConnected(playerid))
    {
		if(!IsACop(playerid)) return SCM(playerid,COLOR_WHITE, "ERROR: You are not a cop.");
		if(Radaron[playerid] == 0) return SCM(playerid,COLOR_WHITE, "Error: You don't have active radar.");
		Radaron[playerid] = 0;
		Radarlimit[playerid] = 0;
		SCM(playerid,COLOR_WHITE,"{FFFF00}You turned off radar, and now speedlimit is destroy.");
		TogglePlayerControllable(playerid, 1);
		return 1;
    }
    return 1;

 

Link to comment
Share on other sites

  • 0

C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22323) : error 017: undefined symbol "PlayerInfo"
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22323) : warning 215: expression has no effect
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22323) : error 001: expected token: ";", but found "]"
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22323) : error 029: invalid expression, assumed zero
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22323) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

Aici trebuie sa inlocuiesc ?

 

Am pus pInfo in loc de PlayerInfo si acum imi da alta eroare :O

https://pastebin.com/BaRcvJWY

C:\Users\Marius PC\Desktop\cxz\GM-(1)\GM\gamemodes\GM.pwn(22323) : error 017: undefined symbol "SCM"
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22324) : error 017: undefined symbol "OnDuty"
C:\Users\Marius PC\Desktop\cxz\GM(1)\GM\gamemodes\GM.pwn(22324) : warning 215: expression has no effect
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22324) : error 001: expected token: ";", but found "]"
C:\Users\Marius PC\Desktop\cxz\GM (1)\GM\gamemodes\GM.pwn(22324) : error 029: invalid expression, assumed zero
C:\Users\Marius PC\Desktop\cxz\GM(1)\GM\gamemodes\GM.pwn(22324) : fatal error 107: too many error messages on one line

Edited by Marusky
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.