Jump to content

[Problema] O mica erroare la comanda /getlicense.


Recommended Posts

Erroarea: 

C:\WSter RPG\gamemodes\wster.pwn(72073) : warning 217: loose indentation
C:\WSter RPG\gamemodes\wster.pwn(72075) : error 030: compound statement not closed at the end of file (started at line 72059)
Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
Comanda:
CMD:getlicense(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
     new str[1400];
     PlayerInfo[playerid][pFlyLic] = 1;
     PlayerInfo[playerid][pFlyLicT] = 10;
     PlayerInfo[playerid][pBoatLic] = 1;
     PlayerInfo[playerid][pBoatLicT] = 10;
     PlayerInfo[playerid][pGunLic] = 1;
     PlayerInfo[playerid][pGunLicT] = 10;
     mysql_format(SQL,str,1400,"UPDATE users SET `FlyLic`='1',`FlyLicT`='10',`BoatLic`='1',`BoatLicT`='10',`GunLic`='1',`GunLicT`='10' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
     mysql_tquery(SQL,str,"","");
     {
                 SendClientMessage(playerid, COLOR_YELLOW,"Ai primit pentru 10 ore licenta de fly,boat,gun. Pentru a obtine licenta de driving, trebuie sa sustii examenul auto!");
                    }
 return 1;
}
Ma ajutati sa o rezolv? Multumesc ;)
Ps: Eu am incercat sa o fac ( se si vede.. :( )
Gm-ul pe care am incercat sa fac comanda este Wster RPG
Link to comment
Share on other sites

Acum 16 ore, _iCristiaN_ a spus:

Erroarea: 

C:\WSter RPG\gamemodes\wster.pwn(72073) : warning 217: loose indentation
C:\WSter RPG\gamemodes\wster.pwn(72075) : error 030: compound statement not closed at the end of file (started at line 72059)
Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
Comanda:
CMD:getlicense(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
     new str[1400];
     PlayerInfo[playerid][pFlyLic] = 1;
     PlayerInfo[playerid][pFlyLicT] = 10;
     PlayerInfo[playerid][pBoatLic] = 1;
     PlayerInfo[playerid][pBoatLicT] = 10;
     PlayerInfo[playerid][pGunLic] = 1;
     PlayerInfo[playerid][pGunLicT] = 10;
     mysql_format(SQL,str,1400,"UPDATE users SET `FlyLic`='1',`FlyLicT`='10',`BoatLic`='1',`BoatLicT`='10',`GunLic`='1',`GunLicT`='10' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
     mysql_tquery(SQL,str,"","");
     {
                 SendClientMessage(playerid, COLOR_YELLOW,"Ai primit pentru 10 ore licenta de fly,boat,gun. Pentru a obtine licenta de driving, trebuie sa sustii examenul auto!");
                    }
 return 1;
}
Ma ajutati sa o rezolv? Multumesc ;)
Ps: Eu am incercat sa o fac ( se si vede.. :( )
Gm-ul pe care am incercat sa fac comanda este Wster RPG

mai inchide o acolada cu un rand inainte de return 1; si dupa aceea pune cursorul inainte de return 1; apasa tab si dupa compile si s s au rezolvat erorile

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
Reply to this topic...

×   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.