SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: xRadical3
Forum: Scripting Help 09/07/2020, 07:27 AM
Replies: 2
Views: 62
Posted By xRadical3
Re: Change char in string

This checks if string contains space, changes to "_" character.
for(new iCh; iCh < strlen(inputtext); iCh++) {
if(inputtext[iCh] == ' ') inputtext[iCh] = '_';
}
Forum: Scripting Help 08/07/2020, 10:14 PM
Replies: 3
Views: 75
Posted By xRadical3
Re: how to detect the weapons the player has

https://forum.sa-mp.com/showpost.php?p=2763117&postcount=4
Forum: Scripting Help 08/07/2020, 10:12 PM
Replies: 1
Views: 43
Posted By xRadical3
Re: ban command

Try this:CMD:ban(playerid, params[])
{
new banner[MAX_PLAYER_NAME], banned[MAX_PLAYER_NAME], bannedid, reason[25], hours, mins, string[400], secs, unbants, ip[16], query[180];
...
Forum: Tutorials 07/07/2020, 11:44 AM
Replies: 32
Views: 17,138
Posted By xRadical3
Re: Faction system [Y_INI]

This tutorial about creating faction system with y_ini not registeration system.
Use https://forum.sa-mp.com/showthread.php?t=273088
Forum: Scripting Help 07/07/2020, 12:48 AM
Replies: 10
Views: 206
Posted By xRadical3
Re: mysql errors

I found the problem.
You missing DEFAULT key between: `Kicked` varchar(128) NOT NULL '0'
Now try this:
new query[800];
strcat(query, "CREATE TABLE IF NOT EXISTS `Users` (\
`Username`...
Forum: Scripting Help 06/07/2020, 11:12 PM
Replies: 10
Views: 206
Posted By xRadical3
Re: mysql errors

I recommend that you put the table creation code in .sql file and then import it into database from phpmyadmin.
Try this:
new query[800];
strcat(query, "CREATE TABLE IF NOT EXISTS `Users` (\
...
Forum: Scripting Help 06/07/2020, 07:03 PM
Replies: 2
Views: 98
Posted By xRadical3
Re: How to return

return OnPlayerCommandText(playerid, "/vcolor");
return OnPlayerCommandText(playerid, "/paintjob");
// ...
Forum: Scripting Help 05/07/2020, 07:56 PM
Replies: 3
Views: 100
Posted By xRadical3
Re: Server Restart issue [Saving]

What kind of saving system you use?
Forum: Scripting Help 05/07/2020, 04:52 PM
Replies: 7
Views: 212
Posted By xRadical3
Re: Vehicle ID problems

I don't understand.

Anyone has solution?
Forum: Scripting Help 05/07/2020, 04:46 PM
Replies: 5
Views: 90
Posted By xRadical3
Re: i need positon room

Some interiors use a similar ID.
Forum: Scripting Help 05/07/2020, 12:54 PM
Replies: 5
Views: 120
Posted By xRadical3
Re: Money in Sql

Try this:

stock MajCompte(playerid)
{
if(!IsPlayerConnected(playerid)) return 1;

JoueurInfo[playerid][score] = GetPlayerScore(playerid);
JoueurInfo[playerid][Argent] =...
Forum: Scripting Help 05/07/2020, 11:04 AM
Replies: 7
Views: 212
Posted By xRadical3
Re: Vehicle ID problems

So when we reset the car variables, how do we set the car variable again on OnVehicleSpawn?
How do we know who car belongs to and set it again?
I really don't understand, this is a huge problem...
Forum: Scripting Help 05/07/2020, 09:50 AM
Replies: 5
Views: 90
Posted By xRadical3
Re: i need positon room

This room is below Caligula's Casino.
I can't give you the original position, this is the Caligula's Casino position.
2233.9363, 1711.8038, 1011.6312
InteriorID 1

you'll find it around and then...
Forum: Scripting Help 05/07/2020, 09:41 AM
Replies: 5
Views: 120
Posted By xRadical3
Re: Money in Sql

Can you show your query?
Forum: Scripting Help 05/07/2020, 06:05 AM
Replies: 7
Views: 212
Posted By xRadical3
Re: Vehicle ID problems

thanks for your answer.
Well, when we reset the vehicle variables in OnVehicleDeath, how do I set them again with the same information after the vehicle is spawned?

When a vehicle deaths then...
Forum: Scripting Help 04/07/2020, 09:52 PM
Replies: 7
Views: 212
Posted By xRadical3
Vehicle ID problems

See this example:

new CarOwner[MAX_VEHICLES][24],
CarBought[MAX_VEHICLES] = false;

//when a player bought a car from ottos(carshop)
new vehicleid = CreateVehicle(522, 0.0, 0.0, 5.0, 0.0,...
Forum: Scripting Help 03/07/2020, 08:22 AM
Replies: 4
Views: 163
Posted By xRadical3
Re: RegEx plugin does not load

I don't know how to replace this code from LibRegEx to Pawn.RegEx. ^( '-' )^


forward bool:IsAdvertisement(text[]);
public bool:IsAdvertisement(text[])
{
new message[128], build,...
Forum: Scripting Help 02/07/2020, 05:05 PM
Replies: 3
Views: 111
Posted By xRadical3
Re: Mysql Error

Try this query:
UPDATE `users` SET Adminlvl = %d, Warnings = %d, Score = %d, Cash = %d WHERE Master_ID = %d
Forum: Scripting Help 01/07/2020, 09:07 PM
Replies: 4
Views: 163
Posted By xRadical3
Re: RegEx plugin does not load

Solved.
I just put MSVCP100D.dll and MSVCR100D.dll in my root folder.
Forum: Scripting Help 01/07/2020, 08:01 PM
Replies: 20
Views: 555
Posted By xRadical3
Talking Re: TogglePlayerControllable problem

Oh, it was fixed!.
The problem was with one of my filterscripts that I didn't notice return false in OnPlayerUpdate callback.
Thanks to all. :D
Forum: Scripting Help 01/07/2020, 07:46 PM
Replies: 2
Views: 114
Posted By xRadical3
Re: Timer NOT working.

Maybe PlayerInfo[i][pTimerSet] is false instead true.
Debug it.
printf("[debug] PlayerInfo[pTimerSet] = %i, playerid = %i", PlayerInfo[i][pTimerSet], i);
Forum: Scripting Help 01/07/2020, 12:17 PM
Replies: 20
Views: 555
Posted By xRadical3
Re: TogglePlayerControllable problem

No i just have one Monitor.
Forum: Scripting Help 01/07/2020, 10:52 AM
Replies: 20
Views: 555
Posted By xRadical3
Re: TogglePlayerControllable problem

Bump.
Not anyone experienced it? Just me?
Forum: Scripting Help 30/06/2020, 11:04 PM
Replies: 4
Views: 163
Posted By xRadical3
RegEx plugin does not load

Loading plugin: libRegEx
Failed.

[DEBUG] regex_exmatch
[DEBUG] regex_exsearch
[DEBUG] regex_exreplace

what's the solution?
All other plugins load well and have no problems.
I have...
Forum: Scripting Help 30/06/2020, 10:55 PM
Replies: 4
Views: 162
Posted By xRadical3
Re: Need this animation

Put this on OnPlayerKeysStateChange callback.

if ( ( newkeys == KEY_SECONDARY_ATTACK || newkeys == KEY_SPRINT ) && UsingAnim[playerid] == 1 )
{
ClearAnimations(playerid);
...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 06:01 PM.


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