SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Mencent
Forum: Scripting Help 07/10/2019, 07:55 PM
Replies: 13
Views: 257
Posted By Mencent
Re: displaying all current players?

Ooops, I didn't See that because I use my mobile phone. Sorry 😎
Forum: Scripting Help 07/10/2019, 07:46 PM
Replies: 13
Views: 257
Posted By Mencent
Re: displaying all current players?

Hello!

If you should use Lokii's Version then you have to decrease the Variable connected in OnPlayerDisconnect. :)
Forum: Scripting Help 19/11/2018, 06:08 PM
Replies: 7
Views: 287
Posted By Mencent
Re: [Help] Undefined symbol "i"

Hello!
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(e_Participando[i] == true)
{
TogglePlayerControllable(i, 0);
}
}

Try this.
Forum: Scripting Help 19/11/2018, 06:05 PM
Replies: 1
Views: 113
Posted By Mencent
Re: error 029: invalid expression, assumed zero

Hello!

Does it work like this?
else if(strlen(aDuty[playerid]))format(string,sizeof(string),"(({FF0000} %s {FFFFFF}%s:{E0FFFF} %s ))",RPAL(playerid),NORPN(playerid),text);
Forum: Scripting Help 19/11/2018, 06:00 PM
Replies: 15
Views: 520
Posted By Mencent
Re: How to write \ simbols to mysql?

Eh, I think that function won't do what you want.
Try this:
ReplaceNewString(string[])
{
for(new i;strlen(string) < i;i++)
{
if(string[i] == '|' && string[i+1] == 'n')string[i] = '\';
...
Forum: Scripting Help 19/11/2018, 05:30 PM
Replies: 15
Views: 520
Posted By Mencent
Re: How to write \ simbols to mysql?

new string[100] = "Hello|n world[...]";
new output[100];
format(output, sizeof(output), "%s", ReplaceNewline(string));
SendPlayerDialog(playerid, DIALOG_STYLE_MSGBOX, "Title", output, "Ok", "");...
Forum: Scripting Help 18/11/2018, 09:49 AM
Replies: 4
Views: 219
Posted By Mencent
Re: Problema in skin randoms

Hello!

Try this:
//OnGameModeInit
AddPlayerClassEx(DRAGONS, random(Dragons), 318.8639,1121.6978,1083.8828,180.1659, 24,99999, 0,0, 0,0);
AddPlayerClassEx(TEMPLARIO, random(Templarios),...
Forum: Scripting Help 17/11/2018, 03:46 PM
Replies: 7
Views: 256
Posted By Mencent
Re: Help with the trailer

Change vehicleid to vehicleid1 and trailerid to trailerid1 in my code.
Forum: Scripting Help 17/11/2018, 03:44 PM
Replies: 17
Views: 634
Posted By Mencent
Re: Problem with a... variable? /goto command

Well I mean the right but write the wrong. Sorry and thanks for your correction! :)
Forum: Scripting Help 17/11/2018, 01:53 PM
Replies: 3
Views: 214
Posted By Mencent
Re: invalid expression, assumed zero

Hello!

What's with that?
Do you get any errors?
Forum: Scripting Help 17/11/2018, 07:14 AM
Replies: 8
Views: 226
Posted By Mencent
Re: invalid expression, assumed zero

Show us the OnPlayerRequestClass code, please.
Forum: Scripting Help 17/11/2018, 07:11 AM
Replies: 17
Views: 634
Posted By Mencent
Re: Problem with a... variable? /goto command

Sorry, my mistake. :( Next time I will look better. ;)
Forum: Scripting Help 17/11/2018, 06:55 AM
Replies: 8
Views: 378
Posted By Mencent
Re: [HELP] "Array Index out of bounds"

Hello!

Can you show us your "new" of carselect, please?
Forum: Scripting Help 17/11/2018, 06:51 AM
Replies: 8
Views: 226
Posted By Mencent
Re: invalid expression, assumed zero

Hello!

Do it like this:
public OnPlayerSpawn(playerid)
{
if(GetPlayerTeam(playerid) == DRAGONS)
{
SetPlayerPos(playerid, 318.8639, 1121.6978, 1083.8828);
...
Forum: Scripting Help 17/11/2018, 06:47 AM
Replies: 5
Views: 229
Posted By Mencent
Re: Team invite

Yeah, right! :)
Forum: Scripting Help 17/11/2018, 06:45 AM
Replies: 7
Views: 256
Posted By Mencent
Re: Help with the trailer

I think an option is to use a timer. There are many other solutions, but try this:
//global variable:
new TruckTimer[MAX_PLAYERS];

//when you enter the truck:
TruckTimer[playerid] =...
Forum: Scripting Help 16/11/2018, 09:46 PM
Replies: 7
Views: 256
Posted By Mencent
Re: Help with the trailer

Hello!

Where do you call the callback? I think it's isn't a basic callback, isn't it?
Forum: Scripting Help 16/11/2018, 06:33 PM
Replies: 6
Views: 183
Posted By Mencent
Re: TEXTDRAW HELP

Where you show this textdraw to the player?
Forum: Scripting Help 16/11/2018, 06:31 PM
Replies: 6
Views: 182
Posted By Mencent
Re: save kick and ban

CMD:ban(playerid,params[])
{
if(PlayerInfo[playerid][cAdmin] >= 3){
new ID,gname[MAX_PLAYER_NAME],string[125],reason[70];
if(sscanf(params,"us[70]",ID,reason)) return...
Forum: Scripting Help 16/11/2018, 06:27 PM
Replies: 6
Views: 183
Posted By Mencent
Re: TEXTDRAW HELP

Hello!

Do you create the textdraws in your gamemode and show it to the player?
If so show us the code. ;)
Forum: Scripting Help 16/11/2018, 06:25 PM
Replies: 6
Views: 182
Posted By Mencent
Re: save kick and ban

Hello!

What do you mean:

?


Do you want a document where you can check which people are kicked / banned?
If so you can use fwrite, fread, fexists and so on. ;)
Forum: Scripting Help 16/11/2018, 06:23 PM
Replies: 9
Views: 247
Posted By Mencent
Re: [HELP]Weapons Problem!

Sorry, I don't use discord. ;)

Look in your gamemode wheather you use a timer and one of these commands (SetPlayerArmedWeapon or ResetPlayerWeapons) in this timer.
Also you can check in...
Forum: Scripting Help 16/11/2018, 06:20 PM
Replies: 2
Views: 138
Posted By Mencent
Re: Problem in save

Hello!

Do you update the both variables?
Try this:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
PlayerInfo[playerid][cDinero] +=...
Forum: Scripting Help 16/11/2018, 06:13 PM
Replies: 9
Views: 247
Posted By Mencent
Re: [HELP]Weapons Problem!

I thought that but you have to check wheather one of that will be used after you get a weapon.
Look where you use this and check wheather it makes sense in this case. You can ask when you are the...
Forum: Scripting Help 16/11/2018, 06:09 PM
Replies: 17
Views: 634
Posted By Mencent
Re: Problem with a... variable? /goto command

That's wrong. d is only for integers and u is for strings and integers. ;)

_______________________________________-


Try this:
CMD:ir(playerid,params[])
{
new...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 09:13 AM.


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