13.05.2010, 12:25
Hey all. I have a question about the wait function. i cant get it working. can someone help me?
The problem is with my tune script. When i tune a car i play a sound, but i wanna hear the sound twice. not just once.
So what i try is like this:
AddVehicleComponent(GetPlayerVehicleID(playerid), 1007); // Left Side Skirt
AddVehicleComponent(GetPlayerVehicleID(playerid), 1017); // Right Side Skirt
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
Wait(1000);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
When i run it. i get this error: error 017: undefined symbol "Wait"
Can someone help me? Thnx in advance
The problem is with my tune script. When i tune a car i play a sound, but i wanna hear the sound twice. not just once.
So what i try is like this:
AddVehicleComponent(GetPlayerVehicleID(playerid), 1007); // Left Side Skirt
AddVehicleComponent(GetPlayerVehicleID(playerid), 1017); // Right Side Skirt
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
Wait(1000);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
When i run it. i get this error: error 017: undefined symbol "Wait"
Can someone help me? Thnx in advance