Search Results
I don't know of any script or tool that can do this automatically, but the math is pretty simple. Get one object's coordinates (S), then get that object's desired coordinates (E), calculate the differ...
234
Your sql query is wrong. Read up on THIS Check tutorials on SQL on ******* as well as TUTORIALS on this forum. From this I can see you don't know SQL. But if you are going to use it in you script, ...
175
The error is pretty self explanatory. CMySQLQuery::Execute[OnAccountRegister] - (error #1054) Unknown column 'PosX' in 'field list' You don't have PosX, PosY, PosZ columns in your table. Don't just...
175
You need to loop trough all the rows. Since you are using mysql_fetch_field_row you need to use mysql_retrieve_row() to move internal row pointer to the next row Код: if(mysql_num_rows() > 0...
61
Explanation of the error: A value is missing when a new row to be inserted does not contain a value for a non-NULL column that has no explicit DEFAULT clause in its definition. So, the field Ammo1 is...
64
Since I don't know exactly how you want the textdraw to look, I can only point you in the right direction. Start from this link and from TexDrawCreate. Experiment with all the functions. Now for t...
128
1. Код: stock AdminsOnlineTextdraw() { new adminstring[128]; for (new i = 0; i < MAX_PLAYERS; i++) { if(!IsPlayerConnected(i)) continue; if(pInfo[i][pAdminLevel] ==...
128
Check this out: https://sampwiki.blast.hk/wiki/OnPlayerClickTextDraw
48
What's your database schema? You need to formulate an sql query. 1. SELECT `userName` from usersTable WHERE `userLevel` = 'admin'; and then check the usernames with usernames that are online. And the...
128
You instantiated variable distance with a value of 99999.0, then in your first if statement you check if the distance is less than 5.0 which is false. So all the possible combinations are (false &...
85
You're missing Conspiracy, Disorderly Conduct and Sexual Assault from the dialog.
98
correct syntax for mysql_query is Код: mysql_query(connection, query[], bool:use_cache = true) but assuming you want to thread the queries, you need to use Код: mysql_tquery(connection, query...
141
Код: stock OnPlayerSave(playerid) { new query[2500], ip[25]; GetPlayerIp(playerid, ip, sizeof(ip)); money[playerid] = GetPlayerMoneyEx(playerid); mysql_format(ConnectMYSQL, query,...
102
You're missing kills and deaths in the first query, but since you're updating that in the second query You should remove it from the first. You should rethink your database schema. MySQL is a relatio...
102
I understand the purpose of a CMS. Building a CMS is the assignment given to me but I want to expand on it. Making a CMS specifically for managing contend needed for a SAMP server website is to simple...
97
Hello guys. I've been given an assignment to make a simple CMS for a PHP course at my collage. I've done a simple SA-MP CMS in .NET last year. But It was too simple and didn't have much features (Bas...
97
I had trouble with the code in a way that it logged me in even do I had typed the wrong password. Then I checked the value of Player[playerid][Password], and it was null. Then I checked the wiki for c...
3,176
Here's the code for target_z, ie object Y rotation pawn Code: // x,y,z arrow position; ax,ay,az, target positionstock Float:GetYRotation(Float:x,Float:y,Float:z, Float:ax, Float:ay, Float:az){    n...
504