if u help me (rep+++++) REP+
#1

Код:
[22/09/2012 15:28:28] [debug] Server crashed while executing Gm.amx
[22/09/2012 15:28:28] [debug] AMX backtrace:
[22/09/2012 15:28:28] [debug] #0  native SendClientMessage () [080d75c0] from samp03svr
[22/09/2012 15:28:28] [debug] #1  0015fda8 in public OnPlayerCommandText (playerid=3, cmdtext[]=@0x00623280 "") at C:\Documents and Settings\ccz\Desktop\sv 0.3e\gamemodes\Gm.pwn:27039
[22/09/2012 15:28:28] [debug] System backtrace:
line:27039
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

..rest of lines
26997-27051

Код:
	if(strcmp(cmd, "/setplayerint", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setplayerint [playerid/PartOfName] [Interior]");
				return 1;
			}
			new world;
			giveplayerid = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setplayerint [playerid/PartOfName] [Interior]");
				return 1;
			}
			world = strval(tmp);
			new giveplayername[MAX_PLAYER_NAME];
			if (PlayerInfo[playerid][pAdmin] >= 1 ||PlayerInfo[playerid][pHelper] >= 1)
			{
				if(IsPlayerConnected(giveplayerid))
			    {
			       		if(giveplayerid != INVALID_PLAYER_ID)
			     		{
			     		    if(IsPlayerInAnyVehicle(giveplayerid))
			     		    {
			     		        SetPlayerInterior(giveplayerid, world);
			     		        PlayerInfo[giveplayerid][pInt] = world;
			     		        SetVehicleVirtualWorld(giveplayerid, 0);
							}
							else
							{
							    SetPlayerInterior(giveplayerid, world);
			     		        PlayerInfo[giveplayerid][pInt] = world;
			     		        SetVehicleVirtualWorld(giveplayerid, 0);
							}
							GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
							format(string, sizeof(string), " Your interior has been set to %d", world);
							SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
							format(string, sizeof(string), " You've set %s's Interior to %d", giveplayerid, world);
							SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
							return 1;
						}
	  	  		}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
				return 1;
			}
		}
		return 1;
	}
What it's the problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)