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

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.