waht ini do i need to define X Y Z?
#1

hey i need to define "X" witch dini i need or what i need?

C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(7) : error 031: unknown directive
C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(32) : error 017: undefined symbol "X"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

I don't really know what you mean
Reply
#3

Quote:
Originally Posted by sant
I don't really know what you mean
check the error then.
It says it undefined.
Reply
#4

Quote:
Originally Posted by [SU
propilot ]
Quote:
Originally Posted by sant
I don't really know what you mean
check the error then.
It says it undefined.
If you want to define X then you should put

Код:
new Float:X;
Reply
#5

Quote:
Originally Posted by sant
Quote:
Originally Posted by [SU
propilot ]
Quote:
Originally Posted by sant
I don't really know what you mean
check the error then.
It says it undefined.
If you want to define X then you should put

Код:
new Float:X;
okay thanks then whats the cmd to stop the playerplaysound?
Reply
#6

Quote:
Originally Posted by [SU
propilot ]
Quote:
Originally Posted by sant
Quote:
Originally Posted by [SU
propilot ]
Quote:
Originally Posted by sant
I don't really know what you mean
check the error then.
It says it undefined.
If you want to define X then you should put

Код:
new Float:X;
okay thanks then whats the cmd to stop the playerplaysound?
I don't think there is one, just play a short sound or do the following:

Код:
public StopPlayerSound(playerid)
{
  new Float:X, Float:Y, Float:Z);
  GetPlayerPos(playerid, X, Y, Z);
  SetPlayerPos(playerid, X, Y, Z);
  return 1;
}
remember to put

Код:
forward StopPlayerSound(playerid);
at the top

If the code doesn't work just tell me.
Reply
#7

Quote:
Originally Posted by Seif_
Use soundid 0 to stop the sound.
Код:
C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(14) : error 031: unknown directive
C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(41) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(46) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Код:
FORBIDED FOR YOU TO SEE
and how do i make the sound that the players around
5 metters away form the building that is on fire ( /firealarm)
will here i too and get a message
*you here an fire alarm?
Reply
#8

Quote:
Originally Posted by [SU
propilot ]
Quote:
Originally Posted by Seif_
Use soundid 0 to stop the sound.
Код:
C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(14) : error 031: unknown directive
C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(41) : error 010: invalid function or declaration
C:\Documents and Settings\Administrator\Desktop\SA-MP Sounds\pawno\Fire Alarm.pwn(46) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
if (strcmp("/stopfirealarm", cmdtext, true, 10) == 0)
    {
 SendClientMessage(playerid, 0xC0C0C0FF, "You Stoped The Fire Alarm!");
 PlayerPlaySound(playerid, 0, X, Y, Z);
    }
    return 0;
}
and how do i make the sound that the players around
5 metters away form the building that is on fire ( /firealarm)
will here i too and get a message
*you here an fire alarm?
Do you use PlayerToPoint?
Reply
#9

Код:
FORBIDED FOR YOU TO SEE
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)