SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 290
Search took 0.01 seconds.
Search: Posts Made By: MrCesar
Forum: Scripting Help 30/04/2020, 10:29 AM
Replies: 1
Views: 95
Posted By MrCesar
optimization?

Hello everyone, I wonder if I've written the code properly or if there's any way to optimize it?
I am not a pro scripter, any advice will be much appreciated! :)

The code is for paycheck system,...
Forum: Tutorials 29/04/2020, 02:02 PM
Replies: 56
Views: 32,406
Posted By MrCesar
Re: Saving weapon data (MySQL)

+1 same problem here, anyone? ???
Forum: Scripting Help 29/04/2020, 08:56 AM
Replies: 6
Views: 180
Posted By MrCesar
Re: mysql tag mismatch

Thanks alot! Works like magic
Forum: Scripting Help 27/04/2020, 10:47 AM
Replies: 6
Views: 180
Posted By MrCesar
Re: mysql tag mismatch

Aight, thanks that removed the mismatch, now getting no active cache erros on mysql logs..
What's causing that? ???
Forum: Scripting Help 27/04/2020, 09:57 AM
Replies: 6
Views: 180
Posted By MrCesar
Re: mysql tag mismatch

Thanks! That removed the tag mismatch from those lines, now only these remains..

AssignPlayerWeapons(playerid)
{
new
weaponid,
ammo;


for(new i, j =...
Forum: Scripting Help 26/04/2020, 08:45 PM
Replies: 6
Views: 180
Posted By MrCesar
mysql tag mismatch

Hello guys,

I've recently been updating my weapon saving system to the one vince explained and showed: https://forum.sa-mp.com/showthread.php?t=505081

Now, I've got to the point where I got...
Forum: Scripting Help 25/04/2020, 08:32 AM
Replies: 3
Views: 88
Posted By MrCesar
Re: textdrawsetstring formatting question

Thanks for your reply, still same result.
Forum: Scripting Help 25/04/2020, 08:07 AM
Replies: 3
Views: 88
Posted By MrCesar
textdrawsetstring formatting question

Hello guys, I am trying to format a textdraw to show players score, but failing..

I've wrote this:
PaydayTD[18] = TextDrawCreate(465.000000, 281.000000, "0");
TextDrawFont(PaydayTD[18], 2);...
Forum: Scripting Help 16/04/2020, 12:34 PM
Replies: 6
Views: 109
Posted By MrCesar
Re: controlling npc

you're awsome, thx
Forum: Scripting Help 16/04/2020, 12:12 PM
Replies: 6
Views: 109
Posted By MrCesar
Re: controlling npc

Hey, thanks for the advice, I've added all the exceptions and now I've added this under playerspawn

if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid,...
Forum: Scripting Help 16/04/2020, 10:46 AM
Replies: 6
Views: 109
Posted By MrCesar
Re: controlling npc

tried that..same result
Forum: Scripting Help 16/04/2020, 10:32 AM
Replies: 6
Views: 109
Posted By MrCesar
controlling npc

Hey guys, I've recently started learning about the npcs, and created a first npc, now I don't really get how to control it..

It connects to the server, but it stays spawned at the farm in middle...
Forum: Scripting Help 15/04/2020, 11:02 AM
Replies: 2
Views: 80
Posted By MrCesar
Re: clickable textdraw doesn't get clicked

Like always, thanks.

EDIT: having another problem now, I've understood it's possible to close td with esc only when using OnPlayerClickTextdraw callback, is there a way to close...
Forum: Scripting Help 15/04/2020, 10:36 AM
Replies: 2
Views: 80
Posted By MrCesar
clickable textdraw doesn't get clicked

Hey guys, I am having trouble with making a clickable textdraw..
Everything works fine to the point where I actually click the textdraw, it's created and opened up with a command, and the selection...
Forum: Scripting Help 13/04/2020, 12:02 PM
Replies: 2
Views: 80
Posted By MrCesar
Re: dynamic checkpoints wont show up

Hey, tried with that:

if(checkpointid == vTestCP[0])
{
DestroyDynamicCP(vTestCP[0]);

vTestCP[1] = CreateDynamicCP(1164.4163,-1741.0220,13.3984, 10, -1, -1, playerid);
}
else...
Forum: Scripting Help 13/04/2020, 10:19 AM
Replies: 2
Views: 80
Posted By MrCesar
dynamic checkpoints wont show up

Hello guys, I am trying to make a gps nav with checkpoint through a specific course, but I can't success to respawn the next checkpoint after I enter the 2nd cp, like it get's stuck on the 3rd cp..
...
Forum: Scripting Help 09/04/2020, 06:18 AM
Replies: 4
Views: 192
Posted By MrCesar
Re: Textdraw + InterpolateCameraPos

Thanks for your response, tried stocks, no success..



Welp, the camera won't trigger without a timer, using a timer is the only way I found to overcome the spectating mode..

EDIT: Noticed...
Forum: Scripting Help 08/04/2020, 05:40 PM
Replies: 3
Views: 144
Posted By MrCesar
Re: Spawn problem

Show us your code, we can't be guessing?
Forum: Scripting Help 08/04/2020, 05:22 PM
Replies: 4
Views: 192
Posted By MrCesar
Textdraw + InterpolateCameraPos

Hello guys, I am having trouble displaying a textdraw on login, here's what happens:

1. the player logs in and see's the InterpolateCameraPos I've set on PlayerRequestClass to change the view on...
Forum: Scripting Help 03/04/2020, 08:11 PM
Replies: 1
Views: 202
Posted By MrCesar
Smile how to optimize?

Hello guys, I've got a big enough piece of code to save all the player variables and data I've created to mysql, but it's huge and prompts me a header size message when compiling, it all works fine...
Forum: Scripting Help 03/04/2020, 12:29 PM
Replies: 6
Views: 180
Posted By MrCesar
calculating players logged time

Hello guys, I am trying to create a paycheck system, I've done it to the part where it saves level as score to mysql and respect points, I've wrotten the command below to check everything work...
Forum: Scripting Help 02/04/2020, 12:51 PM
Replies: 6
Views: 210
Posted By MrCesar
Re: Returning names instead of integers

Don't think it's the case, it sets it on mysql at the moment and sets the var to the levels aswell, if I print the level only as an integer %i it always prints the correct level and correct action...
Forum: Scripting Help 02/04/2020, 10:00 AM
Replies: 6
Views: 210
Posted By MrCesar
Re: Returning names instead of integers

There you go, I've just added the stock like Symon showed before.

CMD:makeadmin(playerid, params[])
{
if(Player[playerid][Admin] >= 6 || IsPlayerAdmin(playerid))
{
new playerb,...
Forum: Scripting Help 02/04/2020, 09:40 AM
Replies: 6
Views: 210
Posted By MrCesar
Re: Returning names instead of integers

Thanks, trying this method tho it printed different names each time I changed a rank..
If I demoted a player to level 2 it would say the level correct but the name may be what i assigned to case 5...
Forum: Scripting Help 02/04/2020, 08:20 AM
Replies: 6
Views: 210
Posted By MrCesar
Returning names instead of integers

Hello guys,
A simple question, with the code shown below, how can I return admin names instead of "your admin level has been set to 1"?

Here's the makeadmin code I am using:
...
Showing results 1 to 25 of 290

 

All times are GMT. The time now is 04:23 AM.


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