SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 447
Search took 0.01 seconds.
Search: Posts Made By: AphexCCFC
Forum: Server Support 06/05/2014, 10:36 PM
Replies: 14,913
Views: 1,918,415
Posted By AphexCCFC
Re: Looking for scripters/helpers? Post here!

Started a roleplaying server from scratch, been working on it for months now. It's gonna be a strict one and everything will be as realistic as possible. I have my own housing system, side jobs...
Forum: Scripting Help 03/05/2014, 04:40 AM
Replies: 6
Views: 657
Posted By AphexCCFC
Re: OnPlayerDeath

Yeah I'll think of a fix for that one aha. +rep, cheers.
Forum: Scripting Help 03/05/2014, 04:33 AM
Replies: 6
Views: 657
Posted By AphexCCFC
Re: OnPlayerDeath

I put SetSpawnInfo and SpawnPlayer under OnPlayerRequestClass and it works now, thanks.

One more problem is that if I log out and back in, it sends me to the hospital and displays the message...
Forum: Scripting Help 03/05/2014, 04:19 AM
Replies: 6
Views: 657
Posted By AphexCCFC
Re: OnPlayerDeath

Under OnPlayerDeath I put:

SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pSkin], -2656.6123, 635.8759, 14.4531, 182.7413, 0, 0, 0, 0, 0, 0);

But it is still showing me the spawn bar.
Forum: Scripting Help 03/05/2014, 04:07 AM
Replies: 6
Views: 657
Posted By AphexCCFC
OnPlayerDeath

public OnPlayerDeath(playerid, killerid, reason)
{
if(PlayerUsingLoopingAnim[playerid])
{
PlayerUsingLoopingAnim[playerid] = 0;
}
PlayerInfo[playerid][pDeath] = 1;
return 1;
}
Forum: Scripting Help 03/05/2014, 01:32 AM
Replies: 2
Views: 429
Posted By AphexCCFC
Line too long

What's wrong with this? I put it all on one line but my pawno crashes.

format(string, sizeof(string), ""White"Kitchen Sink ("Green"$%d"White")\nKitchen Sink 2 ("Green"$%d"White")\nKitchen...
Forum: Scripting Help 02/05/2014, 05:14 PM
Replies: 0
Views: 732
Posted By AphexCCFC
Create Table error?

Why am I getting this error? It creates the table too and looked in the structure and through the code and it's all correct.

Updated the code but get this:

[18:40:53] [ERROR]...
Forum: Scripting Help 02/05/2014, 02:29 PM
Replies: 6
Views: 849
Posted By AphexCCFC
Re: [Question] MySQL Saving

So updating one or two variables into the database per command should be okay? :)
I've done it with the housing system because I know that'll be fine, but most of my commands change the players...
Forum: Scripting Help 01/05/2014, 11:12 PM
Replies: 2
Views: 1,293
Posted By AphexCCFC
Textdraw images

How do people get textdraw images? I use this program called Image2Pawn and it creates at least 800 textdraws per image which is only like 45 pixels
Forum: Scripting Help 01/05/2014, 08:44 PM
Replies: 6
Views: 849
Posted By AphexCCFC
Re: [Question] MySQL Saving

Really? Why do I have this impression it'll end up lagging the server like a bitch if there's say 200+ players on all using /buy, /buyhouse, earning money often etc? :p

Thanks, this actually does...
Forum: Scripting Help 01/05/2014, 08:38 PM
Replies: 7
Views: 1,219
Posted By AphexCCFC
Re: [HELP] mSelection

Major lack of explanation. Post your code and explain the problem in more of an understandable way. How can we help from the little information you have provided? <.<
Forum: Scripting Help 01/05/2014, 08:30 PM
Replies: 6
Views: 849
Posted By AphexCCFC
Re: [Question] MySQL Saving

Yeah got it set up already, just would have liked it if a player buys a house, refreshes the user control panel on my website to see their new house displayed instead of having to quit the server for...
Forum: Scripting Help 01/05/2014, 08:23 PM
Replies: 6
Views: 849
Posted By AphexCCFC
[Question] MySQL Saving

Is it a bad idea to update players mysql stats with query every time their playerinfo variables change? Example - Updated money, skin.. ( Using MySQL R38 )

It's just cause I have a user control...
Forum: Scripting Help 01/05/2014, 08:17 PM
Replies: 7
Views: 740
Posted By AphexCCFC
Re: Mysql saving problem

This happen only when you use /gmx?
Forum: Scripting Help 01/05/2014, 08:15 PM
Replies: 9
Views: 537
Posted By AphexCCFC
Re: MySQL problem

No problem :)
Forum: Scripting Help 01/05/2014, 07:54 PM
Replies: 7
Views: 740
Posted By AphexCCFC
Re: Mysql saving problem

Try it. One way to find out :)
Forum: Scripting Help 01/05/2014, 07:41 PM
Replies: 9
Views: 537
Posted By AphexCCFC
Re: MySQL problem

[21:33:27] CMySQLHandler::Query(UPDATE players_stats SET...
Forum: Scripting Help 01/05/2014, 07:38 PM
Replies: 9
Views: 448
Posted By AphexCCFC
Re: Onplayerrequestspawn bugged again

return 1;

Add that after error message code?
Forum: Scripting Help 01/05/2014, 07:36 PM
Replies: 7
Views: 740
Posted By AphexCCFC
Re: Mysql saving problem

Gamemode exits and players lose the connection before it has chance to save player accounts.
Forum: Scripting Help 01/05/2014, 07:31 PM
Replies: 9
Views: 537
Posted By AphexCCFC
Re: MySQL problem

Error ID: 1054, Unknown column 'BoomBox' in 'field list'

You sure there's a field called BoomBox in your database table?
Forum: Scripting Help 01/05/2014, 07:15 PM
Replies: 9
Views: 537
Posted By AphexCCFC
Re: MySQL problem

Under OnGameModeInit

mysql_debug(1);

Retry your script ingame and post your errors in the mysql_log.txt file it creates in your server directory.
Forum: Scripting Help 01/05/2014, 07:09 PM
Replies: 7
Views: 740
Posted By AphexCCFC
Re: Mysql saving problem

Restarting the server is actually OnGameModeExit.
I suggest you make a command to kick all players (calls OnPlayerDisconnect and saves stats) then set a timer to restart the server using:
...
Forum: Scripting Help 01/05/2014, 07:03 PM
Replies: 12
Views: 833
Posted By AphexCCFC
Re: am looking for a command for players and admin.

Top of game mode add:

new OOC = 0;

CMD:ooc(playerid, params[])
{
new string[128];
if(OOC == 1)
{
SendClientMessage(playerid, -1, "OOC has been disabled by an Administrator.");
Forum: Scripting Help 01/05/2014, 06:49 PM
Replies: 2
Views: 565
Posted By AphexCCFC
Re: Compiling Errors

Post the errors..
Forum: Scripting Help 01/05/2014, 06:47 PM
Replies: 9
Views: 537
Posted By AphexCCFC
Re: MySQL problem

Look in mysql_log.txt, any errors?
Showing results 1 to 25 of 447

 

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


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