Some Small Helps... (rep++)
#1

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<=================
Reply
#2

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

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
Reply
#4

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. ^^
Reply
#5

are you the omar of COD5
Reply
#6

Код:
#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
Reply
#7

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.
Reply
#8

Any error, post it here x), good luck
Reply
#9

i posted above....
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)