Somethings wrong with my code -.-
#1

i tested a bit with explosions just 4 fun but it wont work -.-
Код:
               if(strcmp(cmd, "/burn", true) == 0)
		{
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_WHITE, "/burn [PlayerID/Name]");
			return 1;
		}
		playerid = strval(tmp);
		GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
		if(IsPlayerConnected(giveplayerid))
		{
			if(IsPlayerAdmin(playerid))
			{
			    if(IsPlayerConnected(giveplayerid))
			    {
					new Float:explosionx, Float:explosiony, Float:explosionz;
					GetPlayerPos(giveplayerid, explosionx, explosiony, explosionz);
					CreateExplosion(explosionx, explosiony , explosionz, 1, 1);
				}
				else
				{
				    format(string, sizeof(string), "%d is offline.", giveplayerid);
					SendClientMessage(playerid, COLOR_YELLOW, string);
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_WHITE, "SERVER: Unknown command.");
			}
		}
		return 1;
		}
Reply


Messages In This Thread
Somethings wrong with my code -.- - by wesone - 04.08.2010, 15:00
Re: Somethings wrong with my code -.- - by willsuckformoney - 04.08.2010, 15:02
Re: Somethings wrong with my code -.- - by Mike Garber - 04.08.2010, 15:04
AW: Somethings wrong with my code -.- - by wesone - 04.08.2010, 15:07
Re: Somethings wrong with my code -.- - by Faith - 04.08.2010, 15:09
Re: Somethings wrong with my code -.- - by Mike Garber - 04.08.2010, 15:11
Re: Somethings wrong with my code -.- - by willsuckformoney - 04.08.2010, 15:12
AW: Somethings wrong with my code -.- - by wesone - 04.08.2010, 15:18
AW: Somethings wrong with my code -.- - by wesone - 05.08.2010, 10:35
Re: Somethings wrong with my code -.- - by KennethRandall - 05.08.2010, 10:46

Forum Jump:


Users browsing this thread: 1 Guest(s)