Search Results
The problem is that your use of sscanf is incorrect. Since the lines in the file begin with CreateDynamicObject(...) sscanf fails to parse the line as that part of the string isn't an integer (d) and ...
111
Remove the last parameter in those lines of code (, 1).
140
The issue here is that you're using GetPlayerVehicleID instead of the vehicleid parameter provided in the callback header. It helps to clear the player's animations as they attempt entry. With the co...
90
In short, no. When you kill a timer, that timer's ID is never freed, i.e. used again internally. This is because timer IDs are incremental. So if you kill timer ID 5, the ID of the next created timer...
106
Either change SetDynamicObjectMaterial to SetObjectMaterial or make the object itself dynamic.
89
This can be easily scripted using the Streamer plugin. Here's an example! pawn Код: gRectangle = CreateDynamicRectangle(min_x, min_y, max_x, max_y); pawn Код: public OnPlayerEnterDynamicAre...
76
Not to sound like a cunt here, but this could do with some improvement. Firstly, I think GetPlayerSex would be a better alternative. It's unnecessary to have two functions for something which is bett...
556
If it's possible, support for newer Windows versions would be great. SA-MP doesn't seem to play nice with operating systems released in the past 5 years, and on Windows 10 it's impossible to alt-tab u...
33,640
It's still popular - the player count has been at a steady pace for the past few years. According to SACNR monitor, Russians account for the huge portion of the SA-MP playerbase these days. The only ...
207
(0 - (15 - 5) - 4) = -24. "result" starts from zero and subtracts from there, which is the reason why you're getting -24. To start at 15 you could do: pawn Код: stock SubtractNumber(start, ...)...
60
pawn Код: INI_String("Name", PlayerInfo[playerid][pRealName], MAX_PLAYER_NAME);INI_Int("MaskID", PlayerInfo[playerid][pMaskID]);INI_Int("Mask", PlayerInfo[playerid][pMask]);
161
Quote: Originally Posted by AmigaBlizzard Players could choose to enter "; DROP TABLE accounts;" as their name, it would wipe your database upon logging in. It's not a regular name you wou...
161
How is the data being read?
161
The problem is that OnPlayerUpdate is constantly being called, so when the box is shown, the box will also be hidden on the next update if the player is still in range. Adding checks solves this prob...
72
How is "pRealName" defined in the enumerator? It should be: pawn Код: pRealName[MAX_PLAYER_NAME]
161
Why is the player's name being escaped? It's completely unnecessary. Change '%e' to '%s', and increase the size of 'query'. It seems that there isn't enough space in the query to insert the player's ...
161
pawn Код: GetPlayerName(playerid, string, sizeof(string));strmid(PlayerInfo[playerid][pRealName], string, 0, strlen(string), 64); strmid? What? It isn't exactly the ideal function to use for str...
161
The logical OR operator "||" is what you're looking for. If the first statement is false, then it will check if the second one is true and so on. pawn Код: if((GetPlayerState(i) == PLAYER_STATE_O...
59