SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 276
Search took 0.01 seconds.
Search: Posts Made By: Vizi10
Forum: Scripting Help 14/02/2020, 08:18 PM
Replies: 4
Views: 67
Posted By Vizi10
Re: Count players in a game mode

CountPlayers(mode)
{
new count;
foreach(new i : Player)
{
switch(mode)
{
case 1: if(ModeTDM[i]) count++;
case 2: if(ModeCNR[i]) count++;
...
Forum: Scripting Help 14/02/2020, 11:21 AM
Replies: 1
Views: 61
Posted By Vizi10
Loop starts from 100 to 0

new count;
for(new c = MAX_ADS, e = ad_LastMessageID[0]; e<c; --c) //`MAX_ADS` is 100 and `ad_LastMessageID[0]` is 0
{
if(Advertisement[c][Ads_Type] == ADS_TYPE_HOUSE) ad_LastMessageID[0] = c,...
Forum: Scripting Help 13/02/2020, 04:04 PM
Replies: 2
Views: 62
Posted By Vizi10
Re: PLEASE HELP WITH TEAM

CountTeamPlayers(teamid)
{
new count;
foreach(new i : Player)
{
if(GetPlayerTeam(i) == teamid) count++;
}
return count;
}
Forum: Scripting Help 06/02/2020, 11:45 AM
Replies: 2
Views: 98
Posted By Vizi10
Re: convert zcmd

You cannot use isnull in zcmd for a command that need to enter interger numbers.
isnull just checks if the string is empty or no.
Use sscanf (https://forum.sa-mp.com/showthread.php?t=570927) plugin...
Forum: Scripting Help 06/02/2020, 11:34 AM
Replies: 5
Views: 164
Posted By Vizi10
Re: /id command

CMD:id(playerid, params[])
{
new string[128], part[24], count;
if(sscanf(params, "s[24]", part)) return SendClientMessage(playerid, -1, "USAGE: /id [part of name]");
foreach(new i :...
Forum: Scripting Help 02/02/2020, 12:55 PM
Replies: 3
Views: 61
Posted By Vizi10
Re: I need help with "foreach"

new Iterator:Objects<MAX_OBJECTS>;

public OnFilterScriptInit()
{
new ObjectID;
ObjectID = CreateObject(modelid, X, Y, Z, rX, rY, rZ, dD);
Iter_Add(Objects, ObjectID);
ObjectID...
Forum: Scripting Help 31/01/2020, 09:34 PM
Replies: 11
Views: 314
Posted By Vizi10
Re: MySQL load vehicles issue

So,
for(new j = 1; j < sizeof(CarInfo); j++)

i think this must be
foreach(new j : Vehicle)
//or
for(new j = 1; j < GetVehiclePoolSize(); j++)


CarInfo new like this?:
Forum: Everything and Nothing 31/01/2020, 04:29 PM
Replies: 1
Views: 147
Posted By Vizi10
Wamp server

Hi,
My wampserver is running Apachi and MariaDB but mysql cannot open port 3306

===== Tested by command netstat filtered on port 3306 =====
Port 3306 is not found associated with TCP protocol...
Forum: Scripting Help 30/01/2020, 04:48 PM
Replies: 2
Views: 88
Posted By Vizi10
Re: packetloss commands

https://forum.sa-mp.com/showthread.php?t=570927

CMD:pl(playerid, params[])
{
if(APlayerData[playerid][adminLevel] < 1)
return SendClientMessage(playerid, COLOR_GRAD1, " You are not allowed...
Forum: Scripting Help 29/01/2020, 02:45 PM
Replies: 2
Views: 107
Posted By Vizi10
Re: What name if this

This is progress bar
Use https://github.com/Southclaws/progress2
Forum: Scripting Help 28/01/2020, 08:30 PM
Replies: 2
Views: 78
Posted By Vizi10
TimestampToDate

new string[20], time[6];
TimestampToDate((3*3600),time[0],time[1],time[2],time[3],time[4],time[5],0);
format(string, sizeof(string), "Date: %d-%d-%d Time: %d:%d", time[2], time[1], time[0],...
Forum: Scripting Help 27/01/2020, 10:06 PM
Replies: 3
Views: 73
Posted By Vizi10
Re: tag mismatch.

new Float:health;
Forum: Scripting Help 27/01/2020, 10:03 PM
Replies: 5
Views: 136
Posted By Vizi10
Re: Problem with actors

(This video is private)
What?;D
Forum: Scripting Help 25/01/2020, 01:54 PM
Replies: 4
Views: 72
Posted By Vizi10
Re: Help

You mean textdraws?
Use https://forum.sa-mp.com/showthread.php?t=543002
Forum: Scripting Help 20/01/2020, 06:18 PM
Replies: 1
Views: 84
Posted By Vizi10
Enum string return just first letter

enum UserInfoEnum
{
Name[24],
RankName[24]
};
new UserInfo[MAX_PLAYERS][UserInfoEnum];
When i want return the word stored on enum string, just return first letter.
for example:

public...
Forum: Scripting Help 20/01/2020, 06:09 PM
Replies: 2
Views: 127
Posted By Vizi10
Re: MySQL Query Help

Thank you. :D
Forum: Scripting Help 19/01/2020, 04:19 PM
Replies: 2
Views: 127
Posted By Vizi10
MySQL Query Help

CountClanMembers(clanid, &dest)
{
new query[128], Cache:result, rows;
format(query, sizeof(query), "SELECT COUNT(*) FROM `clans` WHERE `cID` = '%i'", clanid);
result = mysql_query(1, query);...
Forum: Scripting Help 17/01/2020, 10:18 AM
Replies: 5
Views: 131
Posted By Vizi10
Re: Little question

https://forum.sa-mp.com/showthread.php?t=650736

native GetTimerInterval(timerid);
native SetTimerInterval(timerid, interval);
native GetTimerRemainingTime(timerid);
Forum: Scripting Help 13/01/2020, 04:02 PM
Replies: 3
Views: 113
Posted By Vizi10
Re: I need help with forward.

"forward" word is not colored in pawno.
Forum: Scripting Help 12/01/2020, 07:03 PM
Replies: 3
Views: 95
Posted By Vizi10
Re: Crash

Oh, I reduced the number of links (RadioOnline_Urls) and stored `gRadioUrl[playerid]` in the database and some players radio id more than 7. So the problem was..
Thanks @Calisthenics
Forum: Scripting Help 12/01/2020, 02:33 PM
Replies: 7
Views: 164
Posted By Vizi10
Re: HELP Progress

Add to top
#include <YSI/y_va>
Forum: Scripting Help 12/01/2020, 02:19 PM
Replies: 7
Views: 164
Posted By Vizi10
Re: HELP Progress

Use this for send format message or send your function..

new fstring[128];
#define SendFormatMessage(%0,%1,%2,%3) format(fstring, sizeof(fstring),%2,%3) && SendClientMessage(%0, %1, fstring)...
Forum: Scripting Help 12/01/2020, 02:12 PM
Replies: 3
Views: 95
Posted By Vizi10
Crash

public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new RadioURL[128];
GetPVarString(playerid, "RadioCustomURL", RadioURL, sizeof...
Forum: Scripting Help 11/01/2020, 09:20 PM
Replies: 11
Views: 311
Posted By Vizi10
Re: GPS Plugin

https://github.com/janglapuk/SAMP-GPS
This is it?
Forum: Scripting Help 11/01/2020, 08:55 PM
Replies: 11
Views: 311
Posted By Vizi10
Re: GPS Plugin

Yellow lines? What do you mean?
Showing results 1 to 25 of 276

 

All times are GMT. The time now is 07:32 AM.


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