Search Results
Well the issue is you check Code: if(!isnull(FactionInfo[i][fName])) { While this is completely valid it means that your listitem can very easily be different to the ID of the 'faction' you're tryin...
84
If you just run the insert query like normal you can use the LAST_INSERT_ID mysql function to get the ID of it, don't think there's any reason for it to not work on the samp mysql plugin.
66
You could create a new variable in the player info enum for kick time and utilize Code: Info[id][newkickvariable] = gettime()+240; //4 minutes when you kick them, save it to a database and when they...
86
I believe he means in this code: Код: pc LoadFurnitures() { new objects = 0; Total_FUR_Created = cache_num_rows(); new i,x; for(i=0;i<Total_FUR_Created;i++) { object...
112
While I don't quite understand what you mean by famous publication time you can use the DATEDIFF mysql function to get the number of days between two dates, you could just then format the result to sa...
72
What mysql plugin are you using and what version is it?
172
Is your 'IDConexao' variable declared as a mysql variable? When you make your variable you need to make sure it has the prefix MySQL:, so your variable would be: Код: new MySQL:IDConexao;
172
You're passing two seperate arguments for the contents of the dialog. Code: "Item\tCost(zCoins)", "AK-47\t7\n\ M4A1\t7\n\ MP5-K\t6\n\ CZ6...
100
You could get the IP of the person you've just banned, run a foreach loop through all the players, compare if they have the same IP of the person you've just banned and if so kick them/ban them do wha...
120
I've had a little look around and haven't found anything that could directly solve your issue but you could make use of the OnVehicleMod callback and just return 0; informing the player they cannot mo...
192
Quote: Originally Posted by CherryMond Yes. So what specifically in that code is not running?
192
Is Код: SendClientMessage(playerid, C_RED, "You cannot modify this car!"); being sent?
192
Write out a Код: print("Debug"); before the if statement to confirm the callback is being correctly called. Assuming it is, the issue could be your IfPlayerInPrivateVehicle function, could you po...
192
% is used for modulo and / is used for division. Using Code: if(4%2 == 0) //do whatever Is completely valid in PAWN.
115
Quote: Originally Posted by Heress my mysql is installed with PuTTY Well if your server and database are ran on the same VPS localhost should work, otherwise you'll need to setup a SQL ...
143
Quote: Originally Posted by Heress MySQL is on VPS so localhost can't be Are you running your database and server from the VPS? If you're using a service like XAMPP for the SQL server...
143
You're trying to connect to your database with the ip "IP", look for the part of your code where you define what you're connecting to and replace "IP" with localhost or whatever IP you're connecting t...
143
Could you show the query that calls Code: OnPlayerLoad(playerid) ? I'd assume it'd be in your DIALOG_LOGIN response.
145
You may want to include your OnPlayerText callback code, you can't fix a bug with a screenshot.
149
Your best bet is to add the following code to your DCC_OnChannelMessage callback: Код: if(strcmp(user_name, "Your_Bot_Name", true) == 0) return 0; (make sure you add this code after the user_nam...
98