SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 144
Search took 0.01 seconds.
Search: Posts Made By: ImTobi
Forum: Scripting Help 21/03/2020, 01:24 PM
Replies: 7
Views: 231
Posted By ImTobi
Re: Buyhouse command not working

CMD:buyhouse(playerid,params[])
{
if(!IsPlayerLoggedIn(playerid))return notloggedin(playerid);
new Float:x,Float:y,Float:z;
new string[128];
new file[128];
new HouseID;...
Forum: Scripting Help 21/03/2020, 12:49 PM
Replies: 7
Views: 231
Posted By ImTobi
Re: Buyhouse command not working

does it have to be complicated? can't i just change something in the buyhouse command that it works? because in an other command from me, it worked with the return after the loop, because i want to...
Forum: Scripting Help 21/03/2020, 11:55 AM
Replies: 7
Views: 231
Posted By ImTobi
Re: Buyhouse command not working

Can you give me an eample how the code should looklike? because i did it like i did before in a command, and that worked also with return after the loop, with every car that i wanted to check
Forum: Scripting Help 21/03/2020, 09:23 AM
Replies: 7
Views: 231
Posted By ImTobi
Buyhouse command not working

CMD:buyhouse(playerid,params[])
{
if(!IsPlayerLoggedIn(playerid))return notloggedin(playerid);
new file[128];
new Float:x,Float:y,Float:z;
new string[128];
GetPlayerPos(playerid, x, y, z);...
Forum: Scripting Help 09/12/2019, 06:01 PM
Replies: 5
Views: 146
Posted By ImTobi
Re: Help with vehicleid

K its working, thank you, i now understand it why it is outside of the loop! Rep
Forum: Scripting Help 09/12/2019, 05:21 PM
Replies: 5
Views: 146
Posted By ImTobi
Re: Help with vehicleid

if(tInfo[tID[playerid]][tFuelStand] < 100)
{
for(new i=0; i<sizeof(KraftstoffCars); i++)
{
if(vID == KraftstoffCars[i][kID])
{
if(GetVehicleModel(GetVehicleTrailer(vID)) == 584)...
Forum: Scripting Help 09/12/2019, 05:03 PM
Replies: 5
Views: 146
Posted By ImTobi
Re: Help with vehicleid

can you give me an example?
Forum: Scripting Help 09/12/2019, 04:42 PM
Replies: 5
Views: 146
Posted By ImTobi
Help with vehicleid

for(new i=0; i<sizeof(KraftstoffCars); i++)
{
if(vID == KraftstoffCars[i][kID])
{
if(GetVehicleModel(GetVehicleTrailer(vID)) == 584)
{
tInfo[tID[playerid]][tFuelStand] =...
Forum: Scripting Help 04/12/2019, 02:23 PM
Replies: 14
Views: 642
Posted By ImTobi
Re: Fetch offline and online players

Thanks man! REP+ @Kwarde
Forum: Scripting Help 03/12/2019, 12:27 PM
Replies: 14
Views: 642
Posted By ImTobi
Forum: Scripting Help 29/11/2019, 11:03 AM
Replies: 14
Views: 642
Posted By ImTobi
Re: Fetch offline and online players

i am using mysql in my other script, but for me it's easier to use dini, and dini 2 is way faster than dini, so it's ok. I will try that, and respond if i have problems.

I just don't know how to...
Forum: Scripting Help 29/11/2019, 09:58 AM
Replies: 14
Views: 642
Posted By ImTobi
Fetch offline and online players

Hello,
i want to make a /fmember list, so i can view every faction member, but i don't lnow ho wto fetch offline players that are in the faction.
i'm using dini2
Forum: Tutorials 21/11/2019, 03:11 PM
Replies: 2
Views: 1,529
Posted By ImTobi
Re: How to make a Building System

Thanks for your feedback.
I learned it this way from tutorials
and i do it everytime like this, i add buildings in the enum, instead of ingame, which could be easier. But i don't know the exact way...
Forum: Tutorials 20/11/2019, 06:23 PM
Replies: 2
Views: 1,529
Posted By ImTobi
How to make a Building System

Hi!
I want to show you how you can create a Building System with an enum and an Automated enter/exit system with ZCMD and Pickups.


First you have to create the enum:

enum BuildingInfo {...
Forum: Scripting Help 08/11/2019, 04:31 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

OMG THANK YOU, IT NOW WORKS! You are the best!
Forum: Scripting Help 08/11/2019, 03:06 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

if (mysql_query(dbhandle, query, false))
{
SendFormatMessage(playerid, COLOR_YELLOW, "Du hast den Eintrag mit der ID %i gelöscht (%s)", wInfo[i][db_id],...
Forum: Scripting Help 08/11/2019, 01:50 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

Thanks for your help, will try your code later REP+ i'm gonna reply when i'm done
Forum: Scripting Help 08/11/2019, 12:33 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

Delete Command

CMD:delsucar(playerid,params[])
{
if(!eingeloggt[playerid])return NOT_LOGGEDIN(playerid);
if(!IsPlayerInFraktion(playerid,1) && !IsPlayerInFraktion(playerid,4))return...
Forum: Scripting Help 08/11/2019, 10:04 AM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

Well, my command should delete one car of the list out of the database, so that the list ingame is deleting it too, you know?

So if i have car 1, i want to delete car 1 from the database, and the...
Forum: Scripting Help 07/11/2019, 07:52 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

it works now. but when i delete a car from the database, i can still delete it, and the other ids that i type in the command are n working
Forum: Scripting Help 07/11/2019, 07:45 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

case 2:
{
if(!eingeloggt[playerid])return NOT_LOGGEDIN(playerid);
if(!IsPlayerInFraktion(playerid,1) && !IsPlayerInFraktion(playerid,4))return SendClientMessage(playerid, COLOR_RED,...
Forum: Scripting Help 07/11/2019, 07:24 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

well, i changed something, and now it only shows 1 car again. And i did a delete command but it buggs too.
Forum: Scripting Help 07/11/2019, 06:48 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

it works now, but how can i do the dialog with DIALOG_STYLE_TABLIST_HEADER? because if i do the Column Names, it repeats them aswell
Forum: Scripting Help 07/11/2019, 04:27 PM
Replies: 26
Views: 652
Posted By ImTobi
Re: /wantedcars list Command is bugging

enum WantedCarsEnum{
id,
WantedKennzeichen[128],
WantedGrund[128],
CarModel[128]
}

new wInfo[100][WantedCarsEnum];
Forum: Scripting Help 07/11/2019, 01:41 PM
Replies: 26
Views: 652
Posted By ImTobi
Showing results 1 to 25 of 144

 

All times are GMT. The time now is 09:31 PM.


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