SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 124
Search took 0.00 seconds.
Search: Posts Made By: mmrk
Forum: General 15/01/2017, 02:43 PM
Replies: 3,062
Views: 470,701
Posted By mmrk
Re: Suggestions for future SA:MP updates

Ability to use HTTPS request under HTTP request, at the moment when webserver is forced to use HTTPS you get 301 permanent redirect.

HTTP(index, type, url[], data[], callback[])
Forum: Tools and Files 02/10/2012, 12:53 PM
Replies: 36
[Tool/Web/Other] MySQL UCP Framework
Views: 28,207
Posted By mmrk
Re: MySQL UCP Framework

Framework?
Its not framework, framework is something you can read at wikipedia (http://en.wikipedia.org/wiki/Web_application_framework). (Laravel, YII, CI, Zend, CakePHP etc..)
Forum: Tutorials 22/09/2011, 12:52 PM
Replies: 28
[Tutorial] PHP + MySQL
Views: 7,438
Posted By mmrk
Re: PHP + MySQL

One thing more.
If you use AUTO_INCREMENT then you need to set primary key.

Like this:

CREATE TABLE IF NOT EXISTS `users` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`Firstname` varchar(50)...
Forum: Tutorials 22/09/2011, 06:36 AM
Replies: 28
[Tutorial] PHP + MySQL
Views: 7,438
Posted By mmrk
Re: PHP + MySQL

Nothing more to say: http://stackoverflow.com/questions/7206599/switch-to-mysqli-or-stay-with-mysql
Forum: Tutorials 22/09/2011, 12:50 AM
Replies: 28
[Tutorial] PHP + MySQL
Views: 7,438
Posted By mmrk
Re: PHP + MySQL

Id make it this way, but nice work thought.

<?php

$query = "SELECT COUNT(ID) AS amount FROM users "; // Seems clear, we are getting the amount of ID's and we are getting it FROM the table...
Forum: Scripting Help 21/09/2011, 12:46 AM
Replies: 9
Views: 2,582
Posted By mmrk
Re: /duty command

For skin you could do it with PVar's like this:


dcmd_onduty(playerid,params[])
{
#pragma unused params
if (AccInfo[playerid][Level] >= 1)
{
if(AccInfo[playerid][OnDuty] == 0)
...
Forum: Scripting Help 14/09/2011, 01:27 PM
Replies: 2
Views: 2,803
Posted By mmrk
Re: PlaySoundForPlayersInRange()

Location: include/gl_common.inc - SA-MP 0.3d RC1

stock PlaySoundForPlayersInRange(soundid, Float:range, Float:x, Float:y, Float:z)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
...
Forum: Filterscripts 12/09/2011, 09:15 PM
Replies: 1,297
Sticky: Useful Snippets
Views: 533,976
Posted By mmrk
Re: Useful Snippets

All valid sounds from AudioEvents.txt.
Used Excel with =MID(A1;FIND(" ";A1)+1;9) formula.


new vSounds[] { 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013,...
Forum: Scripting Help 11/09/2011, 10:13 AM
Replies: 4
Views: 675
Posted By mmrk
Re: help :(

Read: http://wiki.sa-mp.com/wiki/OnPlayerCommandText
Forum: General 29/03/2011, 09:34 PM
Replies: 4,237
Views: 829,300
Posted By mmrk
Re: Suggestions For Future Sa:MP Versions.

/rcon logout

At the moment we have to close game and connect again.
Forum: Filterscripts 20/03/2011, 06:53 PM
Replies: 29
Views: 7,721
Posted By mmrk
Re: F.A.S. : Frequently Asked Scripts

Maybe?

CMD:me(playerid, params[])
{
new pName[MAX_PLAYER_NAME], str[128];
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
...
Forum: Help Archive 03/02/2011, 06:35 AM
Replies: 2
Views: 768
Posted By mmrk
Re: sscanf2 problem

http://forum.sa-mp.com/showthread.php?t=120356
Forum: Help Archive 02/02/2011, 01:27 AM
Replies: 9
Views: 788
Posted By mmrk
Re: Only if player has X

Take a little look at Operators section.
http://wiki.sa-mp.com/wiki/Control_Structures#Operators
Forum: Help Archive 02/02/2011, 01:21 AM
Replies: 2
Views: 569
Posted By mmrk
Re: Help involving ShowPlayerDialog

Change {FFFFF} to {FFFFFF}
And after "Close" add ,""

So it looks like this:
ShowPlayerDialog(playerid,5,DIALOG_STYLE_MSGBOX," Teleported ","Welcome to {FFFFFF}Los Santos.","Close", "");
Forum: Help Archive 02/02/2011, 01:14 AM
Replies: 9
Views: 788
Posted By mmrk
Re: Only if player has X

if(!strcmp(cmdtext, "/buyrepair", true))
{
if(repair{playerid}==1)
return SendClientMessage(playerid,COLOR_RED,"You already have one repair and can't buy more then 1!");...
Forum: Help Archive 02/02/2011, 12:45 AM
Replies: 9
Views: 788
Posted By mmrk
Re: Only if player has X

Simple, just use it with if :)
You can use " <, >, !=, ==, <=, >="

if(GetPlayerMoney(playerid) == 10000)
{
// Do something
}
Forum: Filterscripts 30/12/2010, 02:41 AM
Replies: 4,682
Views: 1,916,587
Posted By mmrk
Re: Useful Functions

There is maybe other cars with boot, so you need to add them yourself..

stock
IsBootCar(vehicleid)
{
new
car = GetVehicleModel(vehicleid);
switch(car)
{
case 401..402, 405, 409,...
Forum: Help Archive 22/12/2010, 12:44 AM
Replies: 9
Views: 1,228
Posted By mmrk
Re: [HELP] Dialog - OnPlayerClickPlayer

Try with this

Mute[ClickedPlayer[playerid]] = 1;
Forum: Help Archive 22/12/2010, 12:29 AM
Replies: 9
Views: 1,228
Posted By mmrk
Re: [HELP] Dialog - OnPlayerClickPlayer

You don't need to check if player is connected.

#include <a_samp>

new ClickedPlayer[MAX_PLAYERS];

//-------------------------------Dialog-----------------------------------------
public...
Forum: Help Archive 22/12/2010, 12:07 AM
Replies: 9
Views: 1,228
Posted By mmrk
Re: [HELP] Dialog - OnPlayerClickPlayer

Oh damm, i was eating and i didn't pushed the 'post quick replay' button.

Retardedwolf posted the answer..
Forum: Help Archive 14/12/2010, 12:09 PM
Replies: 2
Views: 1,045
Posted By mmrk
Re: [Bug] OnGameModeExit

Read this: http://forum.sa-mp.com/showpost.php?p=930676&postcount=263

Should help you.
Forum: Help Archive 07/12/2010, 09:54 PM
Replies: 1
Views: 751
Posted By mmrk
Re: [HELP] Dialog

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/drinks", true))
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What is it that you want?", "Sprunk ($1)\nBeer...
Forum: Filterscripts 01/12/2010, 04:26 PM
Replies: 4,682
Views: 1,916,587
Posted By mmrk
Re: Useful Functions

And why you post it into functions section?
Forum: Help Archive 28/11/2010, 09:37 PM
Replies: 968
Views: 363,589
Posted By mmrk
Re: SA-MP 0.3c RC client/server (RC1-2)

Just use this (http://www.colorpicker.com/) for colors
Forum: Filterscripts 26/11/2010, 08:22 PM
Replies: 17
[FilterScript] GPS/Location system
Views: 6,365
Posted By mmrk
Re: GPS/Location system

Blame the pastebin!
Showing results 1 to 25 of 124

 

All times are GMT. The time now is 11:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.