Why doesnt this work?
#1

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
Reply
#2

Use SetTimerEx.

pawn Код:
SetTimer("crime", 1000 * 15, true, "i", playerid);
Reply
#3

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
Reply
#4

SetTimerEx not SetTimer
pawn Код:
SetTimerEx("crime", 1000 * 15, true, "i", playerid);
Reply
#5

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.
Reply
#6

nevermind
Reply
#7

Well i want that cops only hear it when they are in the cop vehicles not when they walk around
Reply
#8

Dude a loop is different from a timer
Reply
#9

i didnt say anything about a loop -.- and anyone?
Reply
#10

HELP please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)