Problem with DCMD and user crashing
#4

I think that the "params" are the reason for the crash. I've noticed that this sometimes happens on my server too. Try using "cmdtext" instead of "params". Example:

pawn Код:
dcmd_skroad(playerid, cmdtext)
{
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,3893.8152, -1623.4252, 1442.5);
GameTextForPlayer(playerid,"SKROAD",2500,3);
SetCameraBehindPlayer(playerid);
return 1;
}
But if that doesn't work, then try this one:

pawn Код:
dcmd_skroad(playerid, cmdtext[])
{
SetPlayerInterior(playerid, 0);
ResetPlayerWeapons(playerid);
SetPlayerPos(playerid,3893.8152, -1623.4252, 1442.5);
GameTextForPlayer(playerid,"SKROAD",2500,3);
SetCameraBehindPlayer(playerid);
return 1;
}
Reply


Messages In This Thread
Problem with DCMD and user crashing - by BP13 - 05.07.2009, 12:45
Re: Problem with DCMD and user crashing - by illay - 05.07.2009, 14:13
Re: Problem with DCMD and user crashing - by BP13 - 05.07.2009, 14:41
Re: Problem with DCMD and user crashing - by refshal - 05.07.2009, 14:55
Re: Problem with DCMD and user crashing - by BP13 - 05.07.2009, 15:15
Re: Problem with DCMD and user crashing - by refshal - 05.07.2009, 15:17
Re: Problem with DCMD and user crashing - by BP13 - 05.07.2009, 15:22
Re: Problem with DCMD and user crashing - by refshal - 05.07.2009, 15:24
Re: Problem with DCMD and user crashing - by BP13 - 05.07.2009, 15:26
Re: Problem with DCMD and user crashing - by refshal - 05.07.2009, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)