19.10.2012, 14:57
I simply want this code to spawn me to a location, and give me weapons! Simple...
BUT, I get 1 warning, I skipped the warning but as I went In-game and typed /sawndm, the server didn't recognize this command. "Server: Unknown Command". It says that the warning happend at line 217, but there is no line 217... this is all the code
pawn Код:
//DM By Awankz
//Please Dont Remove Credits
#include <a_samp>
#include <streamer>
#include <core>
#include <float>
#define COLOR_RED 0xAA3333AA
#define COLOR_BLUE 0x33CCFFAA
#define COLOR_ERROR 0xFF6A6AFF
#define COLOR_BOMB 0x96BD6AFF
#define COLOR_ORANGE 0xFF6600
public OnPlayerSpawn(playerid)
{
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/sawndm", true) == 0)
{
SetPlayerPos(playerid, -1314.0879,2541.4563,87.7422);
SendClientMessageToAll(0xFF6600,".: %s has Joined Sawn off Minigame (Sawndm) :.");
PlayerPlaySound(playerid ,3200,0,0,0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 26, 50000);
GivePlayerWeapon(playerid, 28, 50000);
return 1;
}
return 0;
}
pawn Код:
C:\Users\Administration\Desktop\DM.pwn(37) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.