Search Results
Just save the unix timestamp (with gettime()) and then do what brent94 recommended. The saved timestamp will look something like 1400773076 which is the amount of seconds since January 1st, 1970. And ...
93
If you want something to happen (an action performed by the server) after 5 hours I don't think using only timestamps will do, you will need a timer for that. But if you are using a command to show th...
93
Instead of if(1 <= strval(tmp) <= 299) use: pawn Код: if(skinid > 0 && skinid < 300)
160
Quote: Originally Posted by KillerStrike23 lol. I want to learn from codes that's the way which tought me how to script faty, Wonder why nobody wants to help...
129
Quote: Originally Posted by samp_boy same errors That is not possible really, since you have declared i now. So this error shouldn't occur anymore: pawn Код: C:\Documents and Settin...
166
You could just use IsPlayerNPC(playerid) to solve this problem.
80
Well you have to declare the variable i if you want to use it. Also, I think you should use foreach like this: pawn Код: foreach (i : Player)// or even betterforeach (new i : Player)
166
Quote: Originally Posted by Vince That is incorrect. If the first vehicle doesn't match, it will return the error without even checking the rest of the array. Never return inside a loop un...
191
pawn Code: for (new i = 0; i < sizeof(RandomRegularVehicle); i++)        if(CarInfo[idx][cModel] != RandomRegularVehicle[i][0]) return SendClientMessage(playerid, COLOR_RED, "You cannot sell t...
191
Quote: Originally Posted by jeffery30162 Code: if(CarInfo[idx][cModel] != RandomRegularVehicle[][0]) return SendClientMessage(playerid, COLOR_RED, "You cannot sell this type of vehicle he...
191
Quote: Originally Posted by Miladajir new Float: trucker1[5][5] You only have four values so it should be new Float:trucker1[5][4]. Then just use trucker1[rand][0-3] in SetPlayerCheckPo...
68
That doesn't make sense at all. With your design you'd have to check for every vehicle id if it is an LCN vehicle. That doesn't have to do anything with the players. Also the tmpcar is completely usel...
65
Quote: Originally Posted by Abagail pawn Код: CMD:sync(playerid, params[]){if(SyncTimer == 0) {SyncTimer[playerid] = 180;ClearAnimations(playerid);}else return SendClientMessage(player...
163
Create a variable for every user and save the unix timestamp (gettime() + 3 * 60) when the command is executed and test if when it is executed again, the saved timestamp is bigger than the one gettime...
163
Quote: Originally Posted by Konstantinos ... VALUES('%s', '%s', %s, '%s', '%d-%d-%d') ... It doesn't have apostrophes around %s placeholder. That's what I meant. It works, I have teste...
153
Use OnPlayerStateChange to determine whether the player is in a vehicle or not.
94
Quote: Originally Posted by Vaishnav pawn Код: VALUES('%s', '%s', '%s', '%s', '%d-%d-%d') Try it like this. You forgot one string.
153
If you don't know how to use either d_ini, y_ini or MySQL then learn it. There are enough tutorials around here. Us posting code and you using it really won't help you at all.
129
Frankly I don't care about rep at all
266
TextDrawSetSelectable is key here. You need to use that on the textdraws you want to be able to select. pawn Код: TextDrawSetSelectable(Text:i, 1); The first parameter is the id of the textdraw a...
155