14.09.2018, 11:02
Need help with my function please.
14.09.2018, 13:06
Show the code form line 17976 in your gamemode.
14.09.2018, 15:16
PHP код:
function PWarHighCheck(playerid)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
if(pos[2] < 46.1413 && PWarBattle[playerid][InPWar])
{
PLozzerPWar(playerid);
return 1;
}
if(PWarBattle[playerid][InPWar]) SetTimerEx("PWarHighCheck", 1000, false, "d", playerid);
return 1;
}
15.09.2018, 01:24
Quote:
PHP код:
|
Anyway we talked in private chat and the issue is not that simple, it's almost impossible to be solved by someone else.
15.09.2018, 02:26
What do you mean by saying that this is not "JavaScript", do you know how to define "function" or at least some time in your life have you used it? If you think you can not solve a problem or at least look for a solution, then this not for you. I do not see anything complicated in that code
15.09.2018, 07:05
Quote:
What do you mean by saying that this is not "JavaScript"[/COLOR][/SIZE]
|
Quote:
do you know how to define "function" or at least some time in your life have you used it?[/COLOR][/SIZE]
|
We did discuss the issue and I did try to solve it but the error line in the gamemode I received had no issue and the indention was horrible, there could be a missing "{" or "}".
15.09.2018, 07:15
Actually people are lazy, the function keyword in this case its a macro which foward a function and make it public
Its like writeing
foward Example();
public Example()
But you just write
function Example()
Its like writeing
foward Example();
public Example()
But you just write
function Example()
15.09.2018, 09:02
Quote:
You should write stock instead of function, this is not JavaScript.
Anyway we talked in private chat and the issue is not that simple, it's almost impossible to be solved by someone else. |
Код:
#define function%0(%1) forward %0(%1); public %0(%1)
https://sampforum.blast.hk/showthread.php?tid=291018
15.09.2018, 09:07
Quote:
function can be defined as
Код:
#define function%0(%1) forward %0(%1); public %0(%1) https://sampforum.blast.hk/showthread.php?tid=291018 |
@SaMuRy use the tool he shared and see if you can fix your issue.
15.09.2018, 15:16
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)