13.08.2010, 19:17
pawn Код:
if (strcmp("/plantbomb", cmdtext, true, 10) == 0)
{
new Float:X, Float:Y, Float:Z;
if(pInfo[playerid][pC4] == 1)
{
GetPlayerPos(playerid, X, Y, Z);
pInfo[playerid][pC4posX] = X;
pInfo[playerid][pC4posY] = Y;
pInfo[playerid][pC4posZ] = Z;
return 1;
}
return 1;
}
if (strcmp("/detonate", cmdtext, true, 10) == 0)
{
if(pInfo[playerid][pMission] == 1)
{
CreateExplosion(pInfo[playerid][pC4posX], pInfo[playerid][pC4posY], pInfo[playerid][pC4posZ], 7, 40.0);
SendClientMessage(playerid, COLOR_GREEN,"[!]You Receive 100 Score");
GameTextForPlayer(playerid,"Mission Passed",5000,0);
GetPlayerScore(playerid)+100;
return 1;
}
else
{
CreateExplosion(pInfo[playerid][pC4posX], pInfo[playerid][pC4posY], pInfo[playerid][pC4posZ], 7, 40.0);
SendClientMessage(playerid, COLOR_GREEN,"[!]The Bomb has been Detonated");
return 1;
}
}
Код:
C:\DOCUME~1\ADMINI~1\MYDOCU~1\SAMP03~1\GAMEMO~1\LOL.pwn(209) : warning 213: tag mismatch C:\DOCUME~1\ADMINI~1\MYDOCU~1\SAMP03~1\GAMEMO~1\LOL.pwn(210) : warning 213: tag mismatch C:\DOCUME~1\ADMINI~1\MYDOCU~1\SAMP03~1\GAMEMO~1\LOL.pwn(211) : warning 213: tag mismatch C:\DOCUME~1\ADMINI~1\MYDOCU~1\SAMP03~1\GAMEMO~1\LOL.pwn(223) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings.