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.