SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 127
Search took 0.00 seconds.
Search: Posts Made By: samgreen
Forum: Scripting Help 10/02/2015, 12:50 PM
Replies: 54
Views: 11,451
Posted By samgreen
Re: What's your GitHub user?

https://github.com/samgreen

Mostly iOS stuff, a lot of gaming related stuff.
Forum: Includes 09/10/2010, 08:13 PM
Replies: 14
Views: 8,538
Posted By samgreen
Re: ALL model names (and bone names)

Looks great, but your example usage is wrong. Pretty sure you meant GetModelName.
Forum: Help Archive 07/10/2010, 11:59 AM
Replies: 2
Views: 820
Posted By samgreen
Re: Is there a better way?

command(gotolv, playerid, params[])
{
// If you use zcmd, you won't have to suppress this warning.
#pragma unused params

if(PlayerStatistics[playerid][pAdminLevel] < 3) return...
Forum: Help Archive 05/10/2010, 11:44 AM
Replies: 22
Views: 4,055
Posted By samgreen
Re: Scripting help and tips from a professional programmer

I will take another look through the system and get back to you with my comments. I understand the difficulty with keeping your documentation up to to date, but the source is well commented....
Forum: Help Archive 05/10/2010, 10:52 AM
Replies: 3
Views: 899
Posted By samgreen
Re: How to make %d say the amount of cash earnt

Here is a little #define we use in my server that makes this vastly easier:

stock bool:False = false;
#define SendClientMessageFormatted(%0,%1,%2,%3) do{new...
Forum: Help Archive 05/10/2010, 09:22 AM
Replies: 21
Views: 4,022
Posted By samgreen
Re: Dialog list - Identify players selection?

Have to agree with ****** on this. There really is no reason to reinvent the wheel here. Why not find an inventory filterscript that meets your standards, and spend your time programming features...
Forum: Help Archive 05/10/2010, 08:25 AM
Replies: 5
Views: 2,006
Posted By samgreen
Re: Disable player goto you

Commands named goto are fine, but variables name goto will confuse the compiler. It is a reserved keyword.
Forum: Help Archive 05/10/2010, 02:52 AM
Replies: 5
Views: 2,006
Posted By samgreen
Re: Disable player goto you

Goto is a reserved keyword in Pawn. Change the goto variable to anything else.
Forum: Help Archive 05/10/2010, 12:00 AM
Replies: 6
Views: 1,100
Posted By samgreen
Re: storing string into varialbe issue, help

What the hell is this supposed to do?
Forum: Help Archive 04/10/2010, 10:19 PM
Replies: 21
Views: 4,022
Posted By samgreen
Re: Dialog list - Identify players selection?

Does this (http://pastebin.com/vDCZ2pjK) make things more clear?
Forum: Help Archive 04/10/2010, 09:55 PM
Replies: 8
Views: 1,965
Posted By samgreen
Re: Problem MySQL Connect

If your SQL databases are on the same server as your game server, then the IP address is the local loopback IP 127.0.0.1
Forum: Help Archive 04/10/2010, 09:50 PM
Replies: 12
Views: 2,305
Posted By samgreen
Re: Voting problem

This code is awful. The programmer that wrote this clearly wasn't thinking when they copy and pasted this mess. A popular programming concept is DRY (Do not Repeat Yourself). If you are copying and...
Forum: Help Archive 04/10/2010, 09:20 PM
Replies: 12
Views: 1,256
Posted By samgreen
Re: Weird problem

Read the responses! Remove "playerid, "
Forum: Help Archive 04/10/2010, 08:53 PM
Replies: 3
Views: 984
Posted By samgreen
Re: Help with SSCANF

Okay so if I understand correctly the third parameter (cantidad) is optional. Sscanf supports optional parameters by capitalizing the format string, ie "us[8]D". This means that the last parameter...
Forum: Help Archive 04/10/2010, 05:59 PM
Replies: 21
Views: 4,022
Posted By samgreen
Re: Dialog list - Identify players selection?

Post the enum where you defined PlayerItems and I will help you get closer to the code you need. Conroy has posted a solution that should work, I understand you just need some help adapting it to...
Forum: Help Archive 04/10/2010, 05:23 PM
Replies: 22
Views: 4,055
Posted By samgreen
Re: Scripting help and tips from a professional programmer

****** your libraries are fantastic. They are well written and documented and truly a fantastic utility in the world of Pawn programming. Your work was what originally inspired me to begin working...
Forum: Help Archive 04/10/2010, 05:18 PM
Replies: 5
Views: 1,478
Posted By samgreen
Re: Help with anticheat..

The second version is the correct macro. But you should realize that your SetPlayerHealthEx macro adds to the player health instead of setting it. Are you sure this is the intended behavior?
Forum: Help Archive 04/10/2010, 05:15 PM
Replies: 8
Views: 1,965
Posted By samgreen
Re: Problem MySQL Connect

You need to find a SQL host that will give you more control over your databases. You will not find a free host with this level of configuration. The only solution we can recommend is that you...
Forum: Help Archive 04/10/2010, 04:54 PM
Replies: 2
Views: 988
Posted By samgreen
Re: udb_hash

You should migrate to Whirlpool.
Forum: Help Archive 04/10/2010, 04:52 PM
Replies: 12
Views: 1,117
Posted By samgreen
Re: Need help with a command.

Try this:

// Add this line to the command
SetTimerEx("UnjailPlayer", jailTime * 1000, false, "d", otherId);

forward UnjailPlayer(playerid);
public UnjailPlayer(playerid) {
// Change these...
Forum: Help Archive 04/10/2010, 04:43 PM
Replies: 13
Views: 1,533
Posted By samgreen
Re: Timer / Moveobject problem

Post your "ObjectMoveBack" function. Your syntax is wrong for SetTimerEx and your code could use some optimization. Post this function and I'll help you out.
Forum: Help Archive 04/10/2010, 04:40 PM
Replies: 2
Views: 818
Posted By samgreen
Re: look! help plox :D

stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
for(new i = 0; i < sizeof(SpikeInfo); i++)
{
if(SpikeInfo[i][sCreated] == 0)
{
...
Forum: Help Archive 04/10/2010, 04:37 PM
Replies: 13
Views: 7,742
Posted By samgreen
Re: Getting Player's Camera Look At

Did you search the forums at all? This has been asked many times. If you searched the wiki, you would have found this:

http://wiki.sa-mp.com/wiki/GetPlayerCameraFrontVector

This requires...
Forum: Help Archive 04/10/2010, 03:41 PM
Replies: 8
Views: 1,965
Posted By samgreen
Re: Problem MySQL Connect

Do you have MySQL set to refuse connections except from localhost? This looks like a problem with your SQL configuration.

EDIT: I see you are attempting to use a free web host to store your...
Forum: Help Archive 04/10/2010, 03:33 PM
Replies: 4
Views: 927
Posted By samgreen
Re: Problem

Okay, then you are likely returning the wrong value in the main gamemode. What are you returning in OnPlayerCommandText in the main gamemode?
Showing results 1 to 25 of 127

 

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


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