SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 78
Search took 0.01 seconds.
Search: Posts Made By: potato
Forum: Server Support 16/06/2010, 12:57 PM
Replies: 3
Views: 1,211
Posted By potato
Re: binding IPs

I'm sure, I did set up even the webserver on the other IP and that did work.
I noticed that the server does work, even in a server monitor that I made in the web, but I can't see the server on my...
Forum: Server Support 16/06/2010, 12:39 AM
Replies: 3
Views: 1,211
Posted By potato
binding IPs

Hi!
I have 2 servers on one Linux box.
The linux has 2 IPs and I want to have those IP on each server.
The thing is that for some reasons it doesn't work right.
It is impossible to see the 2nd...
Forum: Help Archive 31/05/2010, 09:29 PM
Replies: 12
Views: 1,070
Posted By potato
Re: Pausing

No no, check the lower page, there is a script that is based on OnPlayerUpdate.

[EDIT]
Eh... still nothing but I think I got it why it didn't work, but no idea how to fix it.
public...
Forum: Help Archive 31/05/2010, 09:28 PM
Replies: 12
Views: 1,070
Posted By potato
Re: Pausing

But wait, isn't "returning" something else from "calling"?
I mean, the script actually calls OnPlayerUpdate every time the timer runs... I don't know on what conditions OnPlayerUpdate returns 0, but...
Forum: Help Archive 31/05/2010, 09:19 PM
Replies: 12
Views: 1,070
Posted By potato
Re: Pausing

if I understood right then this should work, but it doesn't:
In a timer:
foreach(Player, i) {
new check;
check = OnPlayerUpdate(i);
if(check == 0) {
SendClientMessage(i, COLOR_BRIGHTRED,...
Forum: Help Archive 31/05/2010, 07:27 PM
Replies: 12
Views: 1,070
Posted By potato
Re: Pausing

I just found that (well of course they do, just that I didn't think of it) timers go on even when players are paused.
I have a script that allows position change after the timer ends, but when...
Forum: Help Archive 31/05/2010, 06:49 PM
Replies: 12
Views: 1,070
Posted By potato
Re: Pausing

Isn't it skipped from calling also when player isn't moving?
Forum: Help Archive 31/05/2010, 06:16 PM
Replies: 12
Views: 1,070
Posted By potato
Pausing

Hi!
Is it possible to detect if player has pressed ESC?
Forum: Help Archive 26/04/2010, 02:04 PM
Replies: 1
Views: 685
Posted By potato
Reading lines from file

Hi!
I have a quite large file with text, each text line is devided by \n or simply enter.
How can I read a random line from the file?
Forum: Help Archive 03/04/2010, 03:52 PM
Replies: 1
Views: 1,011
Posted By potato
Vectors

Hi!
I wanted to ask about vectors... how do they work?
As I remeber from my sleepy math classes then vectors are lines with starting coordinates and endind coordinates, but from useless physics...
Forum: Everything and Nothing 19/03/2010, 08:44 PM
Replies: 5
Views: 1,315
Posted By potato
Re: Name of a song

Lol, thanks!
Forum: Everything and Nothing 19/03/2010, 08:22 PM
Replies: 5
Views: 1,315
Posted By potato
Name of a song

Hi!
I'm not a fan of this kind of music, but this song because of the video is still in my head :D
The song is something like electro (you know, those funky sounds), but I don't recognise genre so...
Forum: Help Archive 15/03/2010, 09:14 PM
Replies: 5
Views: 928
Posted By potato
Re: crash cmd

Hmm, weird, didn't work:
GameTextForPlayer(playerid, "~", 0, 1);
I got a gametext "BIKE"... from where?
Forum: Help Archive 15/03/2010, 08:32 PM
Replies: 5
Views: 928
Posted By potato
crash cmd

Hi!
Is there any known crash cmd, that can crash a player in 0.3?
In 0.2X this was possible with creating playerobject with a modelid that doesn't exist, but now there is a check for that.
Forum: Help Archive 14/03/2010, 12:27 PM
Replies: 0
Views: 500
Posted By potato
weird checkpoint problem

Hi!
I just noticed that in my server that I have missing some checkpoints.
This wouldn't be weird at all if these were script checkpoints, but I'm missing ammunation, transfender and other...
Forum: Help Archive 11/03/2010, 12:00 PM
Replies: 0
Views: 532
Posted By potato
weird string problem

Hi!
I made a simple voting system that allows to input question and answers (up to 4, 2 are optinal).
The problem is that the last string comes up wrong in a dialog, I have no idea why!
Little...
Forum: Plugin Development 29/01/2010, 11:38 PM
Replies: 6,144
Views: 2,068,270
Posted By potato
Re: [REL] MySQL Plugin R3 (27/01/2010)

Just because a column has a name 'ip' doesn't mean it is a string.
Here is an example value: 142487xxx
SELECT INET_NTOA(ip) FROM table2 = 80.x.x.x...
Forum: Plugin Development 29/01/2010, 11:08 PM
Replies: 6,144
Views: 2,068,270
Posted By potato
Re: [REL] MySQL Plugin R3 (27/01/2010)

Not really, as you can see I use INET_NTOA to convert a number to a string which looks like an IP.
So the problem is that after the first cycle it all stops.
The first result (number ip + ip...
Forum: Plugin Development 29/01/2010, 10:47 PM
Replies: 6,144
Views: 2,068,270
Posted By potato
Re: [REL] MySQL Plugin R3 (27/01/2010)

new result2[256];
mysql_query("SELECT ip FROM table");
mysql_store_result(MySQL_Conn);
while(mysql_fetch_row(result)) {
printf(result);
mysql_free_result(MySQL_Conn);
format(query2,...
Forum: Plugin Development 29/01/2010, 10:11 PM
Replies: 6,144
Views: 2,068,270
Posted By potato
Re: [REL] MySQL Plugin R3 (27/01/2010)

Where should I release it?
Forum: Plugin Development 29/01/2010, 09:16 PM
Replies: 6,144
Views: 2,068,270
Posted By potato
Re: [REL] MySQL Plugin R3 (27/01/2010)

I think I found a bug.

mysql_query("SELECT INET_NTOA(ip) FROM table");
mysql_store_result(MySQL_Conn);
while(mysql_fetch_row_format(result)) {
printf(result);
format(query, 256, "SELECT...
Forum: Plugin Development 28/01/2010, 06:18 PM
Replies: 6,144
Views: 2,068,270
Posted By potato
Re: [REL] MySQL Plugin R3 (27/01/2010)

[EDIT]

Nvm, I think I understood, I hope...
"Everything" not always mean everything :P

public OnQueryFinish(query[], resultid, connectionHandle)
{
switch(resultid)
{
case THREAD_LOGIN:
Forum: Help Archive 25/01/2010, 09:06 PM
Replies: 2
Views: 832
Posted By potato
Re: Check spawn

Sorry, forgot to add the [MAX_PLAYERS], but I already have it in the script.
Actually that isn't the point.
I do think that this is because of IsPlayerConnected on the top, but that helps me...
Forum: Help Archive 25/01/2010, 08:43 PM
Replies: 2
Views: 832
Posted By potato
Check spawn

Is there a better way to check if player is spawned?
Currently I have spawned=true; inside OnPlayerSpawn, but there is a problem with it...
not always it seem to go back from false (inside...
Forum: Help Archive 24/01/2010, 12:55 PM
Replies: 0
Views: 1,001
Posted By potato
Vehicle stream

Hi!
Is OnVehicleStreamIn called for every player even if a vehicle is already streamed for another player?
I don't know why but the vehicle lock doesn't work well, it only works if a player which...
Showing results 1 to 25 of 78

 

All times are GMT. The time now is 03:47 PM.


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