[!WTF!] Code Error
#1

Hey all i have little wierd problem
my command:

pawn Код:
dcmd_startmissle(playerid, params[])
{
#pragma unused params
if( gTeam[ playerid ] != TEAM_NUCLEAR )
{
new
Float:x, Float:y, Float:z;

for( new i = 0; i < MAX_PLAYERS; i ++ )
{
if( IsPlayerConnected( i ) && ( i != playerid ) && gTeam[ i ] != TEAM_NUCLEAR )
{
PlayerPlaySound( i, 1190, 0.0, 0.0, 0.0 );
GetPlayerPos( i, x, y, z );
CreateExplosion( x, y, z, 7, 10.0 );
}
}
SendClientMessageToAll( COLOR_NUCLEAR, "|- Nuclear has Killed! everyone! -|" );
}
return 1;
}
If I testing it then it didnt gived me Code ! WTF!
Reply
#2

I mean it didnt gived me Message!
No Errors no Warnings NOTHING!


SORRY FOR DOUBLE POSTING
Reply
#3

pawn Код:
dcmd_startmissle(playerid, params[])
{
#pragma unused params
if( gTeam[ playerid ] != TEAM_NUCLEAR )
{
new
Float:x, Float:y, Float:z;

for( new i = 0; i < MAX_PLAYERS; i ++ )
{
if( IsPlayerConnected( i ) && ( i != playerid ) && gTeam[ i ] != TEAM_NUCLEAR )
{
PlayerPlaySound( i, 1190, 0.0, 0.0, 0.0 );
GetPlayerPos( i, x, y, z );
CreateExplosion( x, y, z, 7, 10.0 );
SendClientMessageToAll( COLOR_NUCLEAR, "|- Nuclear has Killed! everyone! -|" );
}
}
}
return 1;
}
try this
Reply
#4

I weill check it ... thanks
Reply
#5

Quote:
Originally Posted by mineralo
Посмотреть сообщение
pawn Код:
dcmd_startmissle(playerid, params[])
{
#pragma unused params
if( gTeam[ playerid ] != TEAM_NUCLEAR )
{
new
Float:x, Float:y, Float:z;

for( new i = 0; i < MAX_PLAYERS; i ++ )
{
if( IsPlayerConnected( i ) && ( i != playerid ) && gTeam[ i ] != TEAM_NUCLEAR )
{
PlayerPlaySound( i, 1190, 0.0, 0.0, 0.0 );
GetPlayerPos( i, x, y, z );
CreateExplosion( x, y, z, 7, 10.0 );
SendClientMessageToAll( COLOR_NUCLEAR, "|- Nuclear has Killed! everyone! -|" );
}
}
}
return 1;
}
try this
DONT WORK! TESTED
Reply
#6

Enyone can help me??
Reply
#7

well, it should work,if no one have logged or have other TEAM_NUCLEAR then it won't blow, for avoid it try make a condition if not online player with non team_nuclear then receive you sms with it
Reply
#8

Its should but that dont work!
it worked for me 1time but not enymore ):

btw code is taked from LuxAdmin(/explodeall, and edited)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)