Search Results
Kalcor happened to the SA-MP forum and now here we are.
9,724
I'm using the CTime Library Plugin to represent unix timestamps as date and time. To make it a little easier and quicker, I made a function to do this: Код: CDate(timestamp, length) { new tm <...
53
I was just about to create a timer to update all online players' online time in a MySQL table every 5 minutes, but then I thought... would a MySQL event be better? Something like: Code: CREATE EVENT...
386
Quote: Originally Posted by Misiur I don't know what causes your specific problem as the code is correct, but do not use "/" for folder separation, otherwise you'll get really weird result...
152
I receive error 100 (cannot read from file).
152
Quote: Originally Posted by MEW273 It works fine for me, does your code look similar to this: Yeah, it does. main.pwn: Код: #include "functions.pwn" functions.pwn: Код: #inclu...
152
This one has me scratching my head but I bet it's obvious. I have my main gamemode file in my gamemodes folder which gets compiled. I have a folder in my gamemodes folder called "functions", with di...
152
I'm loading 86 houses from a MySQL table. Exterior xyz, interior xyz, interior id, price, owner's name. It's been this way for years since I first coded it, and it's never had any problems. Loads the ...
81
I think they're asking if it's possible to translate a string of text from a SAMP server using ****** Translate.
76
You need to call a callback when the query has finished running. Do this with the mysql_tquery function, for example Код: mysql_tquery(SQL,query, "CallBack"); and then Код: forward CallBack()...
82
Код: if(strfind(inputtext,"%%")!= -1) return Kick(playerid); From the wiki: Format Specifiers %i Integer (whole number) %d Integer (whole number). %s String %f Floating-point number (Float: tag)...
87
I want to be able to see NPC's markers on the map no matter how far away they are, just like with regular player markers. I've tried using ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL); but the NPC ma...
53
I was just wondering, would Код: number *= anothernumber work instead of Код: number = number*anothernumber in the same way that Код: number += anothernumber can replace Код: numbe...
77
Some servers implement small minigames to celebrate certain holidays, such as Christmas and Halloween. What are some of the best scripts you've seen in SA-MP servers related to holidays?
103
Код: new PlayingMusic[MAX_PLAYERS]; public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid, 10.0, -261.05, 2227.15, 58.45) && !PlayingMusic[playerid]) { PlayingMusic[pla...
129
Quote: Originally Posted by Mauzen ******** wisdom: A 5% drop is the "largest depreciation of any currency ever". Actually, it was a 10% drop. Highest drop since 1980s.
1,180
Oh well, no biggie, right?
1,180
I voted remain. It's sad to see that most leave supporters' views are supported by racism or xenophobia. It's funny, though, how most foreigners that come to the UK either take the crap jobs that no-o...
1,180
Sounds pretty fun, but it's just one idea; one system. Most servers have multiple different ideas and minigames that give players something to do at all times, like Mini Missions has races, DMs, parko...
185