Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Probelma Bonus


Question

Posted


 

 

erori:

 

  1. //comanda
  2.  
  3. CMD:giftbox(playerid, params[])
  4. {
  5.    linia 14619 if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  6.     if(IsPlayerConnected(playerid))
  7.     {
  8.         if(PlayerInfo[playerid][pAdmin] >= 6)
  9.         {
  10.             if(IsPlayerInAnyVehicle(playerid)) return 1;
  11.             new Float:A;
  12.             GetPlayerFacingAngle(playerid, A);
  13.             if(GiftBoxActiv < 1)
  14.             {
  15.                 giftboxobject = CreateDynamicObject(19054, GiftPosX,GiftPosY,GiftPosZ - 0.4, 0.0, 0.0, A);
  16.                 giftbox3DText = CreateStreamed3DTextLabel("EVILZONE Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,GiftPosX,GiftPosY,GiftPosZ+0.25,8.0,0);
  17.                 SS(playerid, COLOR_YELLOW, "Ai activat sistemul de Gift Box!", "The Gift Box system was activated!");
  18.                 GiftBoxActiv = 1;
  19.             }
  20.             else
  21.             {
  22.                 DestroyDynamicObject(giftboxobject);
  23.                 DestroyDynamic3DTextLabel(giftbox3DText);
  24.                 SS(playerid, COLOR_YELLOW, "Ai dezactivat sistemul de Gift Box!", "The Gift Box system was dezactivated!");
  25.                 GiftBoxActiv = 0;
  26.             }
  27.         }
  28.         else
  29.         {
  30.             SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly);
  31.         }
  32.     }
  33.     return 1;
  34. }

 

  1. D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(14619) : error 001: expected token: ";", but found "]"
  2. D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(14619) : error 017: undefined symbol "gPlayerLogged"
  3. D:\Users/gm\Desktop\gamemode/gamemodes\test.pwn(14619) : error 029: invalid expression, assumed zero
  4. D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(14619) : fatal error 107: too many error messages on one line

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


4 Errors.

 

aici aveti pastebin cu tot cu comanda si eroare https://pastebin.com/AJgDtsXF 

5 answers to this question

Recommended Posts

  • 0
Posted
On 11/30/2018 at 12:00 PM, Adel said:


 

 

erori:

 

  1. //comanda
  2.  
  3. CMD:giftbox(playerid, params[])
  4. {
  5.    linia 14619 if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  6.     if(IsPlayerConnected(playerid))
  7.     {
  8.         if(PlayerInfo[playerid][pAdmin] >= 6)
  9.         {
  10.             if(IsPlayerInAnyVehicle(playerid)) return 1;
  11.             new Float:A;
  12.             GetPlayerFacingAngle(playerid, A);
  13.             if(GiftBoxActiv < 1)
  14.             {
  15.                 giftboxobject = CreateDynamicObject(19054, GiftPosX,GiftPosY,GiftPosZ - 0.4, 0.0, 0.0, A);
  16.                 giftbox3DText = CreateStreamed3DTextLabel("EVILZONE Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,GiftPosX,GiftPosY,GiftPosZ+0.25,8.0,0);
  17.                 SS(playerid, COLOR_YELLOW, "Ai activat sistemul de Gift Box!", "The Gift Box system was activated!");
  18.                 GiftBoxActiv = 1;
  19.             }
  20.             else
  21.             {
  22.                 DestroyDynamicObject(giftboxobject);
  23.                 DestroyDynamic3DTextLabel(giftbox3DText);
  24.                 SS(playerid, COLOR_YELLOW, "Ai dezactivat sistemul de Gift Box!", "The Gift Box system was dezactivated!");
  25.                 GiftBoxActiv = 0;
  26.             }
  27.         }
  28.         else
  29.         {
  30.             SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly);
  31.         }
  32.     }
  33.     return 1;
  34. }

 

  1. D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(14619) : error 001: expected token: ";", but found "]"
  2. D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(14619) : error 017: undefined symbol "gPlayerLogged"
  3. D:\Users/gm\Desktop\gamemode/gamemodes\test.pwn(14619) : error 029: invalid expression, assumed zero
  4. D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(14619) : fatal error 107: too many error messages on one line

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


4 Errors.

 

aici aveti pastebin cu tot cu comanda si eroare https://pastebin.com/AJgDtsXF 

Salut. Mergi la inceputul gamemodeului unde sunt variabilele si scrie aceasta variabila

new gPlayerLogged[MAX_PLAYERS];

 

  • 0
Posted
Acum 3 ore, LeetRomania a spus:

Salut. Mergi la inceputul gamemodeului unde sunt variabilele si scrie aceasta variabila


new gPlayerLogged[MAX_PLAYERS];

 

Salut, Imi da acum mai multe erori:


D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15432) : error 017: undefined symbol "linia"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15432) : error 001: expected token: ";", but found "if"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15440) : error 017: undefined symbol "GiftBoxActiv"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15442) : error 017: undefined symbol "giftboxobject"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15442) : error 017: undefined symbol "GiftPosX"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15443) : error 017: undefined symbol "giftbox3DText"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15443) : error 017: undefined symbol "CreateStreamed3DTextLabel"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15444) : error 017: undefined symbol "SS"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15445) : error 017: undefined symbol "GiftBoxActiv"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15449) : error 017: undefined symbol "giftboxobject"
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

 

  • 0
Posted
  1. CMD:giftbox(playerid, params[])
  2. {
  3.     if(IsPlayerConnected(playerid))
  4.     {
  5.         if(PlayerInfo[playerid][pAdmin] >= 6)
  6.         {
  7.             if(IsPlayerInAnyVehicle(playerid)) return 1;
  8.             new Float:A;
  9.             GetPlayerFacingAngle(playerid, A);
  10.             if(GiftBoxActiv < 1)
  11.             {
  12.                 giftboxobject = CreateDynamicObject(19054, GiftPosX,GiftPosY,GiftPosZ - 0.4, 0.0, 0.0, A);
  13.                 giftbox3DText = CreateStreamed3DTextLabel("EVILZONE Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,GiftPosX,GiftPosY,GiftPosZ+0.25,8.0,0);
  14.                 SS(playerid, COLOR_YELLOW, "Ai activat sistemul de Gift Box!", "The Gift Box system was activated!");
  15.                 GiftBoxActiv = 1;
  16.             }
  17.             else
  18.             {
  19.                 DestroyDynamicObject(giftboxobject);
  20.                 DestroyDynamic3DTextLabel(giftbox3DText);
  21.                 SS(playerid, COLOR_YELLOW, "Ai dezactivat sistemul de Gift Box!", "The Gift Box system was dezactivated!");
  22.                 GiftBoxActiv = 0;
  23.             }
  24.         }
  25.         else
  26.         {
  27.             SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly);
  28.         }
  29.     }
  30.     return 1;
  31. }
incearca asa
  • 0
Posted
Acum 2 ore, Flaviu11 a spus:
  1. CMD:giftbox(playerid, params[])
  2. {
  3.     if(IsPlayerConnected(playerid))
  4.     {
  5.         if(PlayerInfo[playerid][pAdmin] >= 6)
  6.         {
  7.             if(IsPlayerInAnyVehicle(playerid)) return 1;
  8.             new Float:A;
  9.             GetPlayerFacingAngle(playerid, A);
  10.             if(GiftBoxActiv < 1)
  11.             {
  12.                 giftboxobject = CreateDynamicObject(19054, GiftPosX,GiftPosY,GiftPosZ - 0.4, 0.0, 0.0, A);
  13.                 giftbox3DText = CreateStreamed3DTextLabel("EVILZONE Giftbox\nUse /getgift to get a gift",0xA9C4E4CC,GiftPosX,GiftPosY,GiftPosZ+0.25,8.0,0);
  14.                 SS(playerid, COLOR_YELLOW, "Ai activat sistemul de Gift Box!", "The Gift Box system was activated!");
  15.                 GiftBoxActiv = 1;
  16.             }
  17.             else
  18.             {
  19.                 DestroyDynamicObject(giftboxobject);
  20.                 DestroyDynamic3DTextLabel(giftbox3DText);
  21.                 SS(playerid, COLOR_YELLOW, "Ai dezactivat sistemul de Gift Box!", "The Gift Box system was dezactivated!");
  22.                 GiftBoxActiv = 0;
  23.             }
  24.         }
  25.         else
  26.         {
  27.             SendClientMessage(playerid, COLOR_DARKNICERED, AdminOnly);
  28.         }
  29.     }
  30.     return 1;
  31. }
incearca asa


D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15476) : error 029: invalid expression, assumed zero
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15476) : warning 215: expression has no effect
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15476) : error 001: expected token: ";", but found ")"
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15476) : error 029: invalid expression, assumed zero
D:\Users\gm\Desktop\gamemode\gamemodes\test.pwn(15476) : fatal error 107: too many error messages on one line

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


4 Errors.
 

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.