03.12.2017, 15:45
Ok here is the part of a code:
The script doesn't execute the part after a variable assignment happens (SetPVar or a=2)
I have used SendClientMessages after each significant steps to debug the problem.
When I execute this code in-game, the numbers print upto 4. The code after that is not being run.
Please help...
PHP код:
else
{
SendClientMessage(playerid,grey,"3");
GetPlayerPos(id,Pos[0],Pos[1],Pos[2]);
if(IsPlayerInRangeOfPoint(playerid,15.0,Pos[0],Pos[1],Pos[2]))
{
SendClientMessage(playerid,grey,"4");
SetPVarInt(id,"player",playerid);
SendClientMessage(playerid,grey,"5");
SetPVarInt(id,"id",playerid);
SendClientMessage(playerid,grey,"6");
SetPVarInt(id,"n",n);
SendClientMessage(playerid,grey,"7");
SetPVarInt(id,"cost",cost);
SendClientMessage(playerid,grey,"8");
I have used SendClientMessages after each significant steps to debug the problem.
When I execute this code in-game, the numbers print upto 4. The code after that is not being run.
Please help...