SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: L97
Forum: Scripting Help 18/12/2017, 12:21 AM
Replies: 5
Views: 867
Posted By L97
Re: [MYSQL GAMEMODE]

http://forum.sa-mp.com/showthread.php?t=641235
Forum: Scripting Help 24/11/2017, 10:59 PM
Replies: 5
Views: 835
Posted By L97
Re: SQLite db_num_rows VS count

No, not really..
COUNT(0) will return the same number as COUNT(*) or COUNT(1) or COUNT(100) or even COUNT(10000000)
They all do the same thing: COUNT(0) will be counting rows assigning 0 to each...
Forum: Scripting Help 23/11/2017, 11:11 PM
Replies: 5
Views: 835
Posted By L97
Re: SQLite db_num_rows VS count

Using SELECT COUNT(*) will count itself the number of rows that the table "players" contains and return it:
new DBResult:result = db_query(db, "SELECT COUNT(*) FROM players");
new count =...
Forum: Scripting Help 23/11/2017, 10:29 PM
Replies: 4
Views: 390
Posted By L97
Re: error 035: argument type mismatch (argument 2)

Here you go:


CMD:announce(playerid, params[])
{

if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, -1, "You are not allowed to use this command");
new text[64], time,...
Forum: Scripting Help 23/11/2017, 05:38 PM
Replies: 5
Views: 1,049
Posted By L97
Re: Ondialogresponse

I'm sorry I couldn't understand you, in what dialog do you want this to happen? After the selection I mean
Forum: Scripting Help 23/11/2017, 11:45 AM
Replies: 5
Views: 1,049
Posted By L97
Re: Ondialogresponse

Not sure if I understood on which dialog you'd like it to be displayed, but anyways..

If the dialog gets called right after the selection, you don't really need this, there's an easier way to do...
Forum: Scripting Help 21/11/2017, 02:31 PM
Replies: 10
Views: 724
Posted By L97
Re: Fuel

Sorry my bad, forgot to tell you this: you actually need to declare the car as a variable first, so here's the fix
new car = GetPlayerVehicleID(playerid);
Benzin[car] = 100;
EDIT: I took a look...
Forum: Scripting Help 21/11/2017, 01:33 PM
Replies: 10
Views: 724
Posted By L97
Re: Fuel

Let me guess, you just get a different number every time, right?
So here's the mistake:
Benzin[playerid] = random(100);
If you want to fill the tank up, this (the variable Benzin) doesn't have to...
Forum: Scripting Help 20/11/2017, 02:05 PM
Replies: 9
Views: 458
Posted By L97
Re: I make a command for work but checkpoint stuck at second checkpoint

Let's see if I got this.. you're basically stuck at the second checkpoint, which is this one here?
if(Start[playerid] == 0)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,...
Forum: Scripting Help 20/11/2017, 02:56 AM
Replies: 7
Views: 480
Posted By L97
Re: how to make cmd:findcar

Here:
CMD:carpos(playerid, params[])
{
new CARID;
if(sscanf(params, "i", CARID)) // Check if there's a param
{ // There's no param:
SendClientMessage(playerid, COLOR_RED, "USAGE: /carpos...
Showing results 1 to 10 of 10

 

All times are GMT. The time now is 08:24 PM.


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