SA-MP Forums Archive
Help compiler pawno - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help compiler pawno (/showthread.php?tid=422427)



Help compiler pawno - you_sity - 13.03.2013

This error and warning:
Код HTML:
C:\Users\Àíäðåé\Desktop\1\1\gamemodes\PlatinuM.pwn(567) : warning 217: loose indentation
C:\Users\Àíäðåé\Desktop\1\1\gamemodes\PlatinuM.pwn(575) : error 004: function "DateProp" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
This public with problem :
Код HTML:
public OnPlayerLogin(playerid, password[])
{
    new string[512], PlayerName[40], Password[32];
    GetPlayerName(playerid, PlayerName, 40);
    format(string, 64, "accounts/%s.ini", PlayerName);
    if(fexist(string))
    {
            new iniFile = ini_openFile (string);
            ini_getString(iniFile, "Ïàðîëü", Password);
            if(!strcmp(Password, password, true))
            {
                HealthTime[playerid] = 10;
                ini_getInteger(iniFile, "Ëåâåë", PlayerInfo[playerid][pLevel]);
                ini_getInteger(iniFile, "Àäìèíêà", PlayerInfo[playerid][pAdmin]);
                ini_getInteger(iniFile, "Ðåãà", PlayerInfo[playerid][pReg]);
                ini_getInteger(iniFile, "Ïîë", PlayerInfo[playerid][pSex]);
                SetPVarInt(playerid,"Ïîë", PlayerInfo[playerid][pSex]);
                ini_getInteger(iniFile, "Ïðîïèñêà", PlayerInfo[playerid][pOrigin]);
                ini_getInteger(iniFile, "Ýêñïà", PlayerInfo[playerid][pExp]);
                ini_getInteger(iniFile, "Äåíüãè", PlayerInfo[playerid][pMoney]);
                ini_getInteger(iniFile, "Ñêèí", PlayerInfo[playerid][pModel]);
                ini_getInteger(iniFile, "Ñêèí2", PlayerInfo[playerid][pChar]);
                ini_getInteger(iniFile, "Èíòåðüåð", PlayerInfo[playerid][pInt]);
                ini_getInteger(iniFile, "Ðîçûñê", PlayerInfo[playerid][pWanted]);
                ini_closeFile(iniFile);
//==================================================================
            if(PlayerInfo[playerid][pWanted] > 0)
            {
                SendClientMessage(playerid,COLOR_YELLOW,string);
            }
            GiveMoney(playerid, PlayerInfo[playerid][pMoney]);
            SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
            Logged[playerid] = 1;
            SpawnPlayer(playerid);
            DateProp(playerid);
            return 1;
            }
            else
            {
                ini_closeFile(iniFile);
                SendClientMessage(playerid,COLOR_WHITE,"Ïîðîëü íå ïîäîù¸ë.Ïîïðîáóé åù¸.");
                format(string, 512, "{00cccc}Çäðàâñòâóé, %s!\n\n\
                - Òû çàøåë íà ñåðâåð PlatinuM I (0.3d) [RUS/UA/MD]\n\
                - Èãðîâîé ðåæèì: PlatinuM: LS/SF/LV (RPG)\n\
                - Äîìîâ: 671\n\
                - Áèçíåñîâ: 27\n\
                - Ñáèçíåñîâ: 18\n\
                - Ñàéò ñåðâåðà: PlatinuM-Rpg.Ru\n\n\
                Ýòîò àêêàóíò óæå çàðåãèñòðèðîâàí â ñèñòåìå.\n\n\
                Íàáåðè ïàðîëü äëÿ âõîäà íà ñåðâåð:", PlayerName);
                ShowPlayerDialog(playerid, DIALOG_LOGIN , DIALOG_STYLE_INPUT, "Àâòîðèçàöèÿ", string, "Âõîä","Îòìåíà");
                Logged[playerid] = 0;
                return 1;
            }
            }
            else
            {
                SendClientMessage(playerid,COLOR_LIGHTRED,"Ýòîò íèê íå {ff0000}çàðåãèñòðèðîâàí íà ýòîì ñåðâåðå!Çàðåãèñòðèðóéñÿ ïîæàëóéñòà.");
            }
    return 1;
}



Re: Help compiler pawno - Misiur - 13.03.2013

Your indentation is loose, and the function DateProp is not implemented.


Re: Help compiler pawno - you_sity - 13.03.2013

i understund bat I need a solution


Re: Help compiler pawno - MikeRep - 13.03.2013

For the warning go to the top of the script and type #pragma tabsize 0
For the error is DateProp defined?


Re: Help compiler pawno - you_sity - 13.03.2013

MikeRep , This line 575
Quote:

DateProp(playerid);




Re: Help compiler pawno - you_sity - 13.03.2013

Quote:
Originally Posted by MikeRep
Посмотреть сообщение
For the warning go to the top of the script and type #pragma tabsize 0
For the error is DateProp defined?
This line 575

Код HTML:
			DateProp(playerid);