Jump to content
  • 0

Question

Posted (edited)

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

5 answers to this question

Recommended Posts

  • 0
Posted

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;

 

  • 0
Posted (edited)

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
  • 0
Posted

Defineste pe la inceputul gm-ului asa:

 

#define SCM SendClientMessage

 

Dupa te duci la variabila, cauti ceva gen: // VARIABILE si adaugi acolo:

 

new OnDuty[MAX_PLAYERS],

 

 

g4JGBJX.gif.31953391ab64171df562293ad37a0875.gif.9d26b39cd3270634d9cf89dcb43fba87.gif

 

 

  • 0
Posted (edited)

Spune-ne si gamemode folosesti, poate unii vor lua gm-ul si se vor uita in el, ca sa iti dea mura-n gura.

Edited by VLM

#retras

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.