TextDraws not showing for others but for me
#1

I really can't see the problem here, I've looked through the script a thousand times and can't notice why this happens but whenever another player enters a vehicle it doesn't show my vehicle info textdraws, but when I enter it, it shows for me.

Look here
Reply
#2

im suprised you diding get any warning in the callback ;X
you havent decalred the playerid in the timers!
pawn Код:
SetTimer("SpeedTimer", 80, true); // Speed TextDraw
SetTimer("HealthTima", 80, true); // Health TextDraw
SetTimer("FuelTima", 80, true); // Fuel TextDraw
SetTimer("VehicleTima", 80, true);
should be
pawn Код:
SetTimerEx("SpeedTimer", 80, true,"i",playerid); // Speed TextDraw
SetTimer("HealthTima", 80, true,"i",playerid); // Health TextDraw
SetTimer("FuelTima", 80, true,"i",playerid); // Fuel TextDraw
SetTimer("VehicleTima", 80, true,"i",playerid);
They need to have a paramiter for the player id but with this timings it will make a heck of a lagg for players running this each!
i would suggest to re think the whole script its really messy.
Try using original callback instead of timers, all this function can be done with 1 timer!
Reply
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
Try using original callback instead of timers, all this function can be done with 1 timer!
Did you not read the ******'s timers tutorial?
Quote:
Originally Posted by AndreT
Посмотреть сообщение
While I do support the writing of tutorials, there are some huge issues that need to be addressed here.

1. Combining all timers into one or having less timers with more code is actually probably more problematic than having more times with less code. The statement I just made is valid in most cases, and the more code and the more timers combined into one there are, the more valid it becomes. Why? Due to the way SA-MP synchronization works. And if you think about it, it'll make sense.
Reading on the subject (more specifically, "Timers are efficient" paragraph)
This is the best topic I can find for this purpose right now.
And you're probably ID 0, which is why you're seeing it since you're passing Timers with no params, which means auto-set to 0.
Reply
#4

Quote:
Originally Posted by maramizo
Посмотреть сообщение
Did you not read the ******'s timers tutorial?
no where is it ?
Reply
#5

pawn Код:
SetTimer("Clock", 1000, true);
    SetTimer("ADTimer", 1300, true);
    SetTimer("NOPSetPlayerPos", 1600, true);
    SetTimer("SaveServer", 150000, true);
    SetTimer("AltTabTimer", 1900, true);
    SetTimer("WeaponCheat", 2200, true);
    SetTimer("FuelTimer", 2500, true);
    SetTimer("PrisonTimer", 2800, true);
    SetTimer("LoyalFeatures", 60000, true);
    SetTimer("SpeedTimer", 3100, true); // Speed TextDraw
    SetTimer("HealthTima", 3500, true); // Health TextDraw
    SetTimer("FuelTima", 3900, true); // Fuel TextDraw
    SetTimer("VehicleTima", 4200, true);
After reading ******'s timer tutorial I have changed all my timers to this. Could you please explain exactly why others can't see my textdraws except me? It's weird
Reply
#6

i have same problem with this erros:
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(196) : warning 202: number of arguments does not match definition
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(196) : error 017: undefined symbol "playerid"
this code:
Код:
SetTimer("Speedometer", 100, true, "i", playerid);
Reply
#7

Quote:
Originally Posted by FL3GM4
Посмотреть сообщение
i have same problem with this erros:
Код:
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(196) : warning 202: number of arguments does not match definition
C:\Users\toni\Desktop\Gang War Los Santos 0.3e\gamemodes\mod.pwn(196) : error 017: undefined symbol "playerid"
this code:
Код:
SetTimer("Speedometer", 100, true, "i", playerid);

Um Playerid Aint called ongamemodeinit Do this

pawn Код:
for(new playerid=0; playerid <MAX_PLAYERS; playerid++)
{ //Might Fix your problem
Reply
#8

Quote:
Originally Posted by Buzzbomb
Посмотреть сообщение
Um Playerid Aint called ongamemodeinit Do this

pawn Код:
for(new playerid=0; playerid <MAX_PLAYERS; playerid++)
{ //Might Fix your problem
nope, same errors are here :/
Reply
#9

Might wanna Start your Own Thread and Supply The Line Of Error.. Where its being Called and You may get more help... Wont in Someone elses post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)