Search Results
159
Quote:
Originally Posted by zT KiNgKoNg
To start off, why are you hashing the password? The password in the settings file is plaintext unless you've created the has beforehand and used tha...
159
PHP код:
$query = new SampRcon($_GET['ip'], strval($_GET['port']), md5($_GET['hash']));
if($query->connect())
{
     $query->setWeather(2);
}
else die('Can\'t connect...');Â
...
159
I'm tying use
PHP код:
$query->setWeather(2);Â
but samp console say
Код:
BAD RCON ATTEMPT BY: 127.0.0.1
Any ideas?
I'm using [PHP] Query and RCON API: https://sampforum.blast.hk/...
159
Quote:
Originally Posted by Crayder
My bad, it should be...
new PlayerTexts[MAX_PLAYERS][1000][128];
It should never crash pawno, if it does there is an error in your code... Change 128 ...
181
Quote:
Originally Posted by Crayder
Just change
new PlayerTexts[MAX_PLAYERS][1000];
to
new PlayerTexts[MAX_PLAYERS][1000][];
On empty size I getting:
Код:
error 009: invalid arra...
181
My challenge is:
Код:
new PlayerTexts[MAX_PLAYERS][1000];
...
for(new i=0; i<mysql_num_rows(); i++)
{
mysql_fetch_field_row(fetch, Choosen_Row);
PlayerTexts[playerid][i] = fetch;
}
...
181
Quote:
Originally Posted by Simeon87
Код:
new PlayerTexts[MAX_PLAYERS][1000][1024];
...
PlayerTexts[playerid][0] = "The first string";
PlayerTexts[playerid][1] = "The second string";
...
181
I have this array, how I need to remake it to store strings?
Код:
new PlayerTexts[MAX_PLAYERS][1000];
Because now I get:
Код:
error 006: must be assigned to an array
Array info like this:
КÐ...
181
Quote:
Originally Posted by Vince
Can't be done in Pawn. All array sizes must be known at compile time.
My code works properly, but I just can't use array in oter code locations.
107
Hello, I have a question. How can I make array size by mysql_num_rows? I doing this:
Код:
LoadSomethingToArray(playerid)
{
mysql_query("SELECT * FROM table");
mysql_store_result();
new a...
107
Hi, I'm creating player groups script and I don't know how to do multiple groups for one player, I have this code:
Код:
#define SetPlayerGroup(%0,%1) SetPVarString(%0, "Group", %1)
#define GetPlay...
74
Quote:
Originally Posted by PowerPC603
You have an array of model-id's and coordinates, and you want to create those vehicles with a loop?
Something that.
133
Really I need for loop
Код:
for(i=0; i<=sizeof(cars); i++)
Just I don't want to create
Код:
cars[0] = ...
cars[1] = ...
cars[2] = ...
cars[3] = ...
...
It's easier:
Код:
cars[size] = { c...
133
I know this use is ok:
Код:
new array[2] = { 1, 2 };
But is any way to make something like this:
Код:
new cars[2] = { CreateVehicle(0, 0, 0, 0, 0, -1, -1, 200), CreateVehicle(0, 0, 0, 0, 0, -1, ...
133
Hi, I have small problem with string get from file.
Код:
locale(locale[], variable[])
{
new file[128], info[500];
format(file, 128, "locales/%s.txt", locale);
info = dini_Get(file, variable);...
121
Код:
for(new i=0; i<sizeof(taxi); i++)
{
if(vid == taxi[i])
{
if(pInfo[playerid][specialybe] != SPEC_TAXI)
{
SendClientMessage(playerid, 0xFF0000FF, "Negal...
146
Код:
for(new i=0; i<sizeof(taxi); i++)
{
if(vid == taxi[i])
{
if(IsPlayerInVehicle(playerid, i))
{
if(pInfo[playerid][specialybe] != SPEC_TAXI)
{
...
146