15.04.2012, 10:40
===> I did this for Airstrike:
===> And i am getting these errors and warnings.
pawn Код:
COMMAND:airstrike(playerid, params[])
{
if(GetPlayerScore(playerid) >= 2000)
{
return SendClientMessage(playerid, 0xFF0000FF, "You dont have enough score, you need 2000 score");
}
else
{
new float:X, float:Y, float:Z,
GetPlayerPos(playerid, X, Y, Z);
SetTimer("5 seconds for the bomb to drop", 5000, false);
CreateExplosion(X, Y, Z, 7, 20.0);
SendClientMessage(playerid, 0xFF0000FF, "Bomb was dropped!");
}
return 1;
}
pawn Код:
D:\Game\SA-MP Files\Dark Wars\gamemodes\Wars.pwn(1095) : warning 219: local variable "GetPlayerPos" shadows a variable at a preceding level
D:\Game\SA-MP Files\Dark Wars\gamemodes\Wars.pwn(1095) : error 001: expected token: ";", but found "("
D:\Game\SA-MP Files\Dark Wars\gamemodes\Wars.pwn(1095) : warning 215: expression has no effect
D:\Game\SA-MP Files\Dark Wars\gamemodes\Wars.pwn(1097) : warning 213: tag mismatch
D:\Game\SA-MP Files\Dark Wars\gamemodes\Wars.pwn(1097) : warning 213: tag mismatch
D:\Game\SA-MP Files\Dark Wars\gamemodes\Wars.pwn(1097) : warning 213: tag mismatch
D:\Game\SA-MP Files\Dark Wars\gamemodes\Wars.pwn(1095) : warning 203: symbol is never used: "GetPlayerPos"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.