My Server isn't saving accounts.
#1

Can someone help me with my script?It doesn't save accounts.
And can someone also suggest me some awesome dynamic rp scripts too?
Reply
#2

Show us the code, we cant do shit without it
Reply
#3

Which code?On Player Disconnect?or the whole script?
Reply
#4

That code where you save player account.
Reply
#5

Most obviously the part of the code that is not working properly of course...

Please, in future save yourself and us some time and at least provide some more information.
We dont even know what system for saving data you are using.



regards, wolf.
Reply
#6

Alright,I fixed the account bug but now i am getting some zone errors.
The errors are:
D:\PRRP\gamemodes\RP.pwn(25548) : error 017: undefined symbol "Get2DPosZone"
D:\PRRP\gamemodes\RP.pwn(25555) : error 017: undefined symbol "Get2DPosZone"
D:\PRRP\gamemodes\RP.pwn(58784) : error 017: undefined symbol "Get3DZone"
D:\PRRP\gamemodes\RP.pwn(58784) : warning 202: number of arguments does not match definition
D:\PRRP\gamemodes\RP.pwn(58818) : error 017: undefined symbol "Get3DZone"
D:\PRRP\gamemodes\RP.pwn(58818) : warning 202: number of arguments does not match definition
D:\PRRP\gamemodes\RP.pwn(61815) : error 017: undefined symbol "Get3DZone"
D:\PRRP\gamemodes\RP.pwn(61815) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply
#7

Can you paste the code of this error here please?
Reply
#8

Ok here's the code:
Line 25548 and 25555:
Код:
CMD:fingerprint(playerid, params[]) {
	new
	    iTarget,
	    szSex[7],
	    szMessage[128];

	if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 5 || PlayerInfo[playerid][pFaction] == 5 && PlayerInfo[playerid][pDivision] == 2)  {
		if(sscanf(params, "u", iTarget))
		    return SendClientMessage(playerid, COLOR_GREY, "USAGE: /fingerprint [playerid/partofname]");

		if(!IsPlayerConnected(iTarget))
		    return SendClientMessage(playerid, COLOR_GREY, "The specified player is not connected.");

		if(GetDistanceBetweenPlayers(iTarget, playerid) > 5)
		    return SendClientMessage(playerid, COLOR_GREY, "You're too far away.");

		if(PlayerInfo[iTarget][pCrimes] == 0)
		    return SendClientMessage(playerid, COLOR_GREY, "IAFIS has found no matches for the scanned fingerprint.");

		SendClientMessage(playerid, COLOR_GREY, "-----------------------------------------");

		if(PlayerInfo[iTarget][pSex] == 1)
			szSex = "Male";
		else
			szSex = "Female";

		format(szMessage, sizeof(szMessage), "Name: %s (age: %d, sex: %s)", GetPlayerNameEx(iTarget), PlayerInfo[iTarget][pAge], szSex);
		SendClientMessage(playerid, COLOR_WHITE, szMessage);

		if(PlayerInfo[iTarget][pHouse] != INVALID_HOUSE_ID) {
			new
				szZone[MAX_ZONE_NAME];
				
			Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse]][hExteriorY], szZone, MAX_ZONE_NAME);
			format(szMessage, sizeof(szMessage), "House: %d %s", PlayerInfo[iTarget][pHouse], szZone);
			SendClientMessage(playerid, COLOR_WHITE, szMessage);
		} else if(PlayerInfo[iTarget][pHouse2] != INVALID_HOUSE_ID) {
			new
				szZone[MAX_ZONE_NAME];

			Get2DPosZone(HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorX], HouseInfo[PlayerInfo[iTarget][pHouse2]][hExteriorY], szZone, MAX_ZONE_NAME);
			format(szMessage, sizeof(szMessage), "House (2): %d %s", PlayerInfo[iTarget][pHouse2], szZone);
			SendClientMessage(playerid, COLOR_WHITE, szMessage);
		}

		format(szMessage, sizeof(szMessage), "Prior convictions: %d", PlayerInfo[iTarget][pCrimes]);
		SendClientMessage(playerid, COLOR_WHITE, szMessage);

		format(szMessage, sizeof(szMessage), "Prior arrests: %d", PlayerInfo[iTarget][pArrested]);
		SendClientMessage(playerid, COLOR_WHITE, szMessage);

		SendClientMessage(playerid, COLOR_GREY, "-----------------------------------------");
 	}
	return 1;
}
Line 58784:
Код:
if(dialogid == TRACKCAR && response) {
		new Float: carPos[3];
		if(PlayerVehicleInfo[playerid][listitem][pvId] > INVALID_PLAYER_VEHICLE_ID)
		{
			GetVehiclePos(PlayerVehicleInfo[playerid][listitem][pvId], carPos[0], carPos[1], carPos[2]);
			if(CheckPointCheck(playerid))
			{
				SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first with /killcheckpoint (you either have material packages, or another existing checkpoint).");
			}
			else
			{
				SetPVarInt(playerid, "TrackCar", 1);

				new zone[MAX_ZONE_NAME];
				Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
				format(string, sizeof(string), "Your vehicle is located in %s.", zone);
				SendClientMessage(playerid, COLOR_YELLOW, string);
				SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0);
				SendClientMessage(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your vehicle!");
			}
		}
		else if(PlayerVehicleInfo[playerid][listitem][pvImpounded]) SendClientMessage(playerid, COLOR_WHITE, "You can't track an impounded vehicle. If you wish to reclaim it, do so at the DMV in Dillimore.");
		else if(PlayerVehicleInfo[playerid][listitem][pvDisabled] == 1) SendClientMessage(playerid, COLOR_WHITE, "You can't track a disabled vehicle. It is disabled due to your Donator level (vehicle restrictions).");
		else if(PlayerVehicleInfo[playerid][listitem][pvSpawned] == 0 && PlayerVehicleInfo[playerid][listitem][pvModelId] != 0) SendClientMessage(playerid, COLOR_WHITE, "You can't track a stored vehicle. Use /vstorage to spawn it.");
		else SendClientMessage(playerid, COLOR_WHITE, "You can't track a non-existent vehicle.");
	}
Line 58818:
Код:
else if(dialogid == GTRACKCAR)
	{
	    if(response == 1)
	    {
	        for(new i = 0; i < MAX_GANG_VEHICLES; i++)
	        {
	            if(listitem == i)
	            {
	                new Float: carPos[3];
					new Family = PlayerInfo[playerid][pGang];
					if(FamilyVehicleInfo[Family][i][fvId] != INVALID_VEHICLE_ID)
					{
	                	GetVehiclePos(FamilyVehicleInfo[Family][i][fvId], carPos[0], carPos[1], carPos[2]);
	                	if(CheckPointCheck(playerid))
						{
							SendClientMessage(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first with /killcheckpoint (you either have material packages, or another existing checkpoint).");
						}
						else
						{
					    	SetPVarInt(playerid, "TrackCar", 1);

					    	new zone[MAX_ZONE_NAME];
					    	Get3DZone(carPos[0], carPos[1], carPos[2], zone, sizeof(zone));
					    	format(string, sizeof(string), "Your vehicle is located in %s.", zone);
					    	SendClientMessage(playerid, COLOR_YELLOW, string);
					    	SetPlayerCheckpoint(playerid, carPos[0], carPos[1], carPos[2], 15.0);
					    	SendClientMessage(playerid, COLOR_WHITE, "Hint: Make your way to the checkpoint to find your car!");
						}
					}
					else
					{
					    SendClientMessage(playerid, COLOR_WHITE, "You can't track a vehicle in a empty slot.");
					}
	            }
	        }
	    }
	}
Line 61815:
Код:
if(EMSCallTime[i] > 0)
		{
			if(EMSAccepted[i] < 999)
			{
				if(IsPlayerConnected(EMSAccepted[i]))
				{
					new Float:X,Float:Y,Float:Z;
					GetPlayerPos(EMSAccepted[i], X, Y, Z);
					new zone[MAX_ZONE_NAME];
     				Get3DZone(X, Y, Z, zone, sizeof(zone));
					new string[128];
					format(string, sizeof(string), "Your patient is located in %s.", zone);
					SetPlayerCheckpoint(i, X, Y, Z, 5);
				}
			}
		}
Reply
#9

Anyone help me please!
Reply
#10

Download the zones include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)