save with dini problem
#1

Hello,

Can any one help me with my register system?

I dont no why it no save the Passwort and creat a .ini in scriptfiles folder.

I hope any one can help me per Teamviewer its just 5-10 minutes for a good scripter


Thx
Reply
#2

Quote:
Originally Posted by Rapfabrik
Hello,

Can any one help me with my register system?

I dont no why it no save the Passwort and creat a .ini in scriptfiles folder.

I hope any one can help me per Teamviewer its just 5-10 minutes for a good scripter


Thx
i have the same problem...
Reply
#3

Theres many tutorials on this forum, read them
Reply
#4

Quote:
Originally Posted by Niixie
Theres many tutorials on this forum, read them
i created the login system with a TUTORIAL =.=
Reply
#5

Then you didnt do it right

Du you use strcmp or DCMD?
Reply
#6

Quote:
Originally Posted by Niixie
Then you didnt do it right

Du you use strcmp or DCMD?
i use dcmd and the tut aswell
Reply
#7

Show us your code where its suppose to create the file.
Reply
#8

Quote:
Originally Posted by _Xerxes_
Show us your code where its suppose to create the file.
well nvm that but now that im working on a new project, this doesnt work



Code :
pawn Код:
#include <a_samp>
#include <dini>
#include <dutils>
// SAYS PAWNO : If An Warrning Shows Up About ret_memcpy isnt used IGNORE IT
#pragma unused ret_memcpy
#define FILTERSCRIPT
#if defined FILTERSCRIPT
// Defines
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define green      0x33AA33AA
#define red       0xAA3333AA
#define yellow     0xFFFF00AA
#define lightblue    0x33CCFFAA
#define orange     0xFF9900AA

#define UserFile "iScore\Users\%s.ini"
// Forwards .:. Player Stats
forward iScoreSaveScore();
forward iScoreStatsReset();
//===== ENUMATION .:. Player Stats == iScoreLogin || iScoreStat Score || iScoreStat Money || =================
enum ISCORE_USER {
    Password,
    LoggedIn,
    Score,
    Money
}

new PlayerInfo[MAX_PLAYERS][ISCORE_USER];

enum SPECIAL {
    Opend
}

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" iScore By Ceka [PRIVATE VERSION]");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif


public OnPlayerConnect(playerid)
{
    new string[100];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName,sizeof(pName));
    format(string,sizeof(string),UserFile,pName);
    if (!fexist(string))
    {
        SendClientMessage(playerid, yellow, "iScore: iScore Is A System that saves your stats.");
        SendClientMessage(playerid, yellow, "iScore: There Are Channels And Rights With Score Channels,");
        SendClientMessage(playerid, yellow, "iScore: You Havent Got A iScore File Yet, Type /iregister [password]");
    }
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}
I got errors here
pawn Код:
public OnPlayerConnect(playerid)
{
    new string[100];
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName,sizeof(pName));
    format(string,sizeof(string),UserFile,pName);
    if (!fexist(string))
    {
        SendClientMessage(playerid, yellow, "iScore: iScore Is A System that saves your stats.");
        SendClientMessage(playerid, yellow, "iScore: There Are Channels And Rights With Score Channels,");
        SendClientMessage(playerid, yellow, "iScore: You Havent Got A iScore File Yet, Type /iregister [password]");
    }
    return 1;
}
Errors :
Код:
C:\Users\Mihailo\Desktop\fs1.pwn(64) : error 027: invalid character constant
C:\Users\Mihailo\Desktop\fs1.pwn(64) : error 027: invalid character constant
C:\Users\Mihailo\Desktop\fs1.pwn(238) : warning 203: symbol is never used: "PlayerInfo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#9

well at first when i was using .rar instead of folder so the problem was occuring with me even i changed many admin scripts then i tried that in a folder and it was working correctly .You may have the same problem .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)