Why doesnt this work? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Why doesnt this work? (
/showthread.php?tid=222461)
Why doesnt this work? -
thimo - 07.02.2011
Hey im trying to make a police radio only when your in/on a police vehicle but it only works at ID 0
pawn Код:
if(GetVehicleModel(vehicleid) == 523 || GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 490 ||GetVehicleModel(vehicleid) == 528 ||GetVehicleModel(vehicleid) == 596 ||GetVehicleModel(vehicleid) == 598 ||GetVehicleModel(vehicleid) == 597 ||GetVehicleModel(vehicleid) == 599) {
SetTimer("crime", 1000 * 15, true);
}
return 1;
}
forward crime(playerid);
public crime(playerid)
{
PlayCrimeReportForPlayer(playerid,0,3);
}
Help please

i just want a radio for people who got wanted stars
Re: Why doesnt this work? -
Krx17 - 07.02.2011
Use SetTimerEx.
pawn Код:
SetTimer("crime", 1000 * 15, true, "i", playerid);
Re: Why doesnt this work? -
thimo - 07.02.2011
C:\Users\Thimo\Desktop\sa-mp\gamemodes\PPC_Trucking.pwn(696) : warning 202: number of arguments does not match definition
C:\Users\Thimo\Desktop\sa-mp\gamemodes\PPC_Trucking.pwn(696) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
of ur settimerex
Re: Why doesnt this work? -
SkizzoTrick - 07.02.2011
SetTimerEx not SetTimer
pawn Код:
SetTimerEx("crime", 1000 * 15, true, "i", playerid);
Re: Why doesnt this work? -
Matej_ - 07.02.2011
Quote:
Originally Posted by thimo
C:\Users\Thimo\Desktop\sa-mp\gamemodes\PPC_Trucking.pwn(696) : warning 202: number of arguments does not match definition
C:\Users\Thimo\Desktop\sa-mp\gamemodes\PPC_Trucking.pwn(696) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
of ur settimerex
|
Paste the line 696 here.
Re: Why doesnt this work? -
thimo - 07.02.2011
nevermind
Re: Why doesnt this work? -
thimo - 07.02.2011
Well i want that cops only hear it when they are in the cop vehicles not when they walk around
Re: Why doesnt this work? -
alpha500delta - 07.02.2011
Dude a loop is different from a timer
Re: Why doesnt this work? -
thimo - 07.02.2011
i didnt say anything about a loop -.- and anyone?
Re: Why doesnt this work? -
thimo - 08.02.2011
HELP please