Questions tagged [sa-mp]

SA-MP (San Andreas Multiplayer) is a multiplayer mod for Grand Theft Auto San Andreas allowing users to play against each other over the internet or LAN. It makes use of the scripting language Pawn.

13 questions
3
votes
1 answer

How to fix dark skin issue on SAMP class selection in pawn?

I'm working on a SAMP server using pawn language, but I've started facing an issue since I started work on SAMP player skin selection class. The issue is when a player request's a class all skins becomes darker. My Code: public…
Jazz
  • 214
  • 2
  • 10
2
votes
1 answer

Player Spawning Bug

When I run my game mode the player is supposed to spawn at the coordinates given in OnPlayerSpawn. Its works perfectly but after I press the "Spawn" button the screen flashes showing my player at the default samp coordinates(the little place with…
user3059477
  • 21
  • 1
  • 5
1
vote
1 answer

GTA SA-MP Scripting: Dynamic objects did not render after 20,000 x coordinates

I've created a map that exceeded 20,000 in x coordinates (east of los santos) and i've set my SetPlayerWorldBounds(playerid, 500000.00, -2000.00, 2000.00, -500000.00) and used the latest version of incognito plugin but when I reached more than…
user9315910
1
vote
1 answer

MySQL Error 1452 when inserting data

I keep getting errors when importing my old SQL file and fix them all,but I'm stuck and can't understand what this means. ALTER TABLE property ADD CONSTRAINT property_ibfk_1 FOREIGN KEY (intid) REFERENCES interiors (id) ON DELETE CASCADE ON…
Fair
  • 13
  • 3
1
vote
2 answers

SA-MP servers crashes at start

I have a server for almost 4 years and I didn't have any problems (host side) until now. I changed hostings all the time because ddos stuff trying to find best for me. Now I buyed one VPS (its not my first) and tried to run my server and i have…
Fifa Anes
  • 11
  • 4
1
vote
2 answers

A simple command in PAWN

San Andreas Multiplayer (GTA) uses PAWN as its programming language. I'm an owner of a server on SA-MP and I'm not that pro so I'd like to get some help if possible. Basically, I have a command that checks player's statistics when he/she is online,…
KevinBurke
  • 11
  • 3
1
vote
1 answer

How to make a command require RCON login

How can I make a command require the player to be logged in via RCON in order to execute it? I wish to do this for security reasons.
Clove
  • 29
  • 2
  • 6
0
votes
1 answer

SAMP PHP API Integration

I want to show the number of players in the server instead of that UNKNOWN thing, I haven't enabled the API yet, can I get help that, I want to integrate the progress bar to the total players in game like if players are 50/100 = 50% of the bar will…
Shrey Ratna
  • 131
  • 1
  • 1
  • 9
0
votes
1 answer

MySQL error connection to mysql failed

The includes are of SQL.php, the below code is SQL.php Notice: Undefined index: myusername in C:\xampp1\htdocs\cp\global\class\user.php on line 3 Fatal error: Uncaught Error: Call to undefined function mysql_connect() in…
XFlawless
  • 15
  • 4
0
votes
1 answer

Generate user_password phpBB

I have a gameserver running on the same server as a phpBB forum. I want to make users verify their identity to the gameserver by entering their phpBB username and password. I know how to do this with their username (simply get their username and…
James Monger
  • 10,181
  • 7
  • 62
  • 98
0
votes
1 answer

Image X & Y axe

i have a image (1536x1536), it's a map. And i want to have X and Y axe on image max x: 3000.0, max y: 3000.0, min x: -3000.0, min y: -3000.0. I want to to convert my coordinates (X,Y) in position on map (top/bottom and left/right)
user3032469
  • 299
  • 1
  • 2
  • 10
0
votes
4 answers

Array index out of bounds error Pawn

I am using spawn points but when it compiles I'm getting this error: Array index out of bounds On this line is the error for(new i =0 ; i < 5 ;i++) { SetPlayerPos(playerid, spawnpoints[i][0], spawnpoints[i][1], spawnpoints[i][2]); } Hoping…
Clove
  • 29
  • 2
  • 6
0
votes
2 answers

"Invalid expression, assumed zero" error on if-statement

I'm getting the following error whenever I compile my code: "Error 029: Invalid expression, assumed zero" The error is thrown on the following line: if ((PlayerInfo[playerid][ADMINLevel])) || (IsPlayerAdmin(playerid)) I want the if-statement to…
Clove
  • 29
  • 2
  • 6