SA-MP Forums Archive
Some Small Helps... (rep++) - 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: Some Small Helps... (rep++) (/showthread.php?tid=332236)



Score Not Saving?? (rep++) - iOmar - 07.04.2012

1- How to Make Zones. Like USA got blue color in map etc.....

2-And How can i save Scores?? When i get score and then i turn off server all scores disappear?

=============>I'll Give Every Person "REP+" who Will try to Help me<=================


Re: Some Small Helps... (rep++) - iOmar - 08.04.2012

Any oNe?? S0rry For Double Post. (BUMP)
I need Answers please i am making gamemod and i am gonna host it please......


Re: Some Small Helps... (rep++) - ReneG - 08.04.2012

Why do you say sorry for something then do it?
The rules are wait 24 hours after the last post was made.
  1. https://sampwiki.blast.hk/wiki/GangZoneCreate
  2. ****** a saving system like y_ini and learn how to use it



Re: Some Small Helps... (rep++) - .FuneraL. - 08.04.2012

pawn Код:
#include <dini>

In OnGameModeInit :

if(!fexist("score.ini")) dini_Create("score.ini");

In OnPlayerDisconnect :

dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
Saving Score. ^^


Re: Some Small Helps... (rep++) - $$inSane - 08.04.2012

are you the omar of COD5


Re: Some Small Helps... (rep++) - $$inSane - 08.04.2012

Код:
#include <dini>

In OnGameModeInit :

if(!fexist("score.ini")) dini_Create("score.ini");

In OnPlayerDisconnect :

dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
For zones:

Код:
new gangzone1;
new gsfzone;

public OnGameModeInit()
{
        gsfzone = GangZoneCreate(2220.3711,-1937.0173,2737.8306,-1372.4310);
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}


public OnFilterScriptInit()
{
        gsfzone = GangZoneCreate(2220.3711,-1937.0173,2737.8306,-1372.4310);
        return 1;
}


public OnPlayerConnect(playerid)
{
        GangZoneShowForPlayer(playerid,gsfzone,0x00C714AA);
        return 1;
}
For more info about zones read: https://sampforum.blast.hk/showthread.php?tid=303538


Re: Some Small Helps... (rep++) - iOmar - 08.04.2012

Yes he is. he is my Brother
score saving says
pawn Код:
D:\Game\SA-MP Files\UnderWars\gamemodes\Wars.pwn(621) : error 017: undefined symbol "PlayerName"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: Some Small Helps... (rep++) - .FuneraL. - 08.04.2012

Any error, post it here x), good luck


Re: Some Small Helps... (rep++) - iOmar - 08.04.2012

i posted above....


Re: Some Small Helps... (rep++) - .FuneraL. - 08.04.2012

Quote:
Originally Posted by iOmar
Посмотреть сообщение
Yes he is. he is my Brother
score saving says
pawn Код:
D:\Game\SA-MP Files\UnderWars\gamemodes\Wars.pwn(621) : error 017: undefined symbol "PlayerName"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
new PlayerName[MAX_PLAYER_NAME];
Put this.