[!WTF!] Code Error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [!WTF!] Code Error (
/showthread.php?tid=314296)
[!WTF!] Code Error -
James Coral - 29.01.2012
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!
Re: [!WTF!] Code Error -
James Coral - 29.01.2012
I mean it didnt gived me Message!
No Errors no Warnings NOTHING!
SORRY FOR DOUBLE POSTING
Re: [!WTF!] Code Error -
mineralo - 29.01.2012
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
Re: [!WTF!] Code Error -
James Coral - 29.01.2012
I weill check it ... thanks
Re: [!WTF!] Code Error -
James Coral - 29.01.2012
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
Re: [!WTF!] Code Error -
James Coral - 29.01.2012
Enyone can help me??
Re: [!WTF!] Code Error -
mineralo - 29.01.2012
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
Re: [!WTF!] Code Error -
James Coral - 29.01.2012
Its should but that dont work!
it worked for me 1time but not enymore ):
btw code is taked from LuxAdmin(/explodeall, and edited)