Jump to content
  • 0

Question

Posted

saluuut, folosesc gm-ul lui @Anurakisi cand activez comanda /bonus primesc erori.

cod:

C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(1389) : loose indentation
C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(8344) : error 010: invalid function or declaration
C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(8345) : error 010: invalid function or declaration
C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(8352) : error 021: symbol already defined: "GivePlayerCash"
C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(8354) : error 021: symbol already defined: "SendClientMessage"
C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(8363) : error 010: invalid function or declaration
C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(26828) : loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2017, ITB CompuPhase


5 Errors.

comanda:

CMD:bonus(playerid, params[]) {
	if(PlayerInfo[playerid][pLevel] > 1) return SCM(playerid, COLOR_GREY, "Nu ai level 1!");
	{
		PlayerInfo[playerid][pPremiumPoints] += 100; pUpdateInt(playerid, "PremiumPoints", 	PlayerInfo[playerid][pPremiumPoints]);
		PlayerInfo[playerid][pPlayPoints] += 50; pUpdateInt(playerid, "PlayPoints", 	PlayerInfo[playerid][pPlayPoints]);
		PlayerInfo[playerid][pLegendaryCrate] ++; pUpdateInt(playerid, "LegendaryCrate", 	PlayerInfo[playerid][pLegendaryCrate]);
		PlayerInfo[playerid][pLevel] += 2; pUpdateInt(playerid, "Level", 	PlayerInfo[playerid][pLevel]);
		SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
		GivePlayerCash(playerid, 25000000);
		updatelevel(playerid);
		SendClientMessage(playerid, -1, "--------------------------------------------------------------------------------------");
		SendClientMessage(playerid, COLOR_DCHAT, "Bonus: {ffffff} Ai primit ca bonus de bun venit :");
		SendClientMessage(playerid, COLOR_DCHAT, ">> {ffffff}level 3");
		SendClientMessage(playerid, COLOR_DCHAT, ">> {ffffff}100 de puncte premium");
		SendClientMessage(playerid, COLOR_DCHAT, ">> {ffffff}50 de PlayPoints");
	    SendClientMessage(playerid, COLOR_DCHAT, ">> {ffffff}suma de $25,000,000");
	    SendClientMessage(playerid, COLOR_DCHAT, ">> {ffffff}si un Legendary Crate");
    	SendClientMessage(playerid, -1, "--------------------------------------------------------------------------------------");
	}
	return true;}

 

2 answers to this question

Recommended Posts

  • 0
Posted

edit: am rezolvat erorile, acu primesc 2 warning-uri:

C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(1389) : loose indentation
C:\Users\win\Desktop\gamemode\gamemode play-gaming\gamemodes\redhood.pwn(26828) : loose indentation
Pawn compiler 3.2.3664              Copyright (c) 1997-2017, ITB CompuPhase

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.