Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Putin Ajutor !!!


Question

2 answers to this question

Recommended Posts

  • 0
Posted (edited)
Acum 2 ore, FAStingTV a spus:

Salut inca o data ,am o comanda de /freeze https://pastebin.com/qauwqHg4  va rog sa ma ajutati ca de ex daca un admin a dat freeze la un player si acel admin a esit din joc si playerul are freeze sa primeasca un freeze si respawn,ma ajutati ?

Salveaza intr o variabila pt admin ca a dat freeze cuiva, gen freezetarget[playerid]=targetid;//la comanda freeze

Isfreeze[targetid]=1; // la comanda freeze

si la on playerdisconect verifici daca if(freezetarget[playerid] != 0 )

{

if(Isfreeze[freezetarget[playerid]==1) {

TogglePlayerControllable(freezetarget[playerid],1);

freezetarget[playerid]=0;

Isfreeze[freezetarget[playerid]=0;

SpawnPlayer(playerid);

}

}

Edited by valivaly96
  • 0
Posted

ma poate ajuta cineva am 2 erori 

C:\Users\User\Desktop\gm bottles\pawno\include\a_mysql.inc(104) : error 010: invalid function or declaration
C:\Users\User\Desktop\GM.pwn(84) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
 

104:Veh[MAX_PLAYERS][14][Owner] = -1, pInfo[MAX_PLAYERS][pID] = -1, pInfo[MAX_PLAYERS][pPass] = '\0', pInfo[MAX_PLAYERS][pScore] = 0, pInfo[MAX_PLAYERS][pUser] = '\0', pInfo[MAX_PLAYERS][pAdmin] = 0, pInfo[MAX_PLAYERS][pRPoints] = 0,

84: mysql_connect("89.33.242.12", "kido", "kido", "kidokid1");

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.