SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 23/06/2013, 05:22 PM   #1
Little Clucker
thistooshallpass93's Avatar
Join Date: Feb 2013
Posts: 25
Reputation: -3
Default Need help with command

Hey guys.

I don't understand why this is happening but.....

This is the code

PHP Code:
CMD:flipcoin(playeridparams[]) // or CMD:mycommand(playerid, params[])
rc random(sizeof(Coinside));


LoggedIn[playerid] == 0) return SendClientMessage(playeridERROR_COLOR"[ *** ERROR *** ] You cannot use commands because you are not logged in.");
IsDead[playerid] == 1) return SendClientMessage(playeridERROR_COLOR"[ *** ERROR *** ] You cannot use commands because you are dead.");
format(stringsizeof(string), "%s Flips a coin into the air and the coin lands on %s",pnameCoinside[rc]);
ProxDetector(15.0playeridstring, -1);

What happens is that whenever i type in the command nothing happens. I checked my ProxDetector, I verified this script 1,000 times.

Basically what is suppose to happen is you flip a coin it grabs Heads or Tales as a random value and displays it to players within 15 meters.

Get back to me if u guys have an idea.
My Tutorials
thistooshallpass93 is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with command. Only returns Server: Unknown Command Knappen Scripting Help 9 18/12/2013 06:09 PM
[Command Bugged] Each time i use /respawnallcars it says Unknown Command Rand_Omar Scripting Help 11 30/09/2012 12:35 AM
Executed ZCMD command returns SERVER: Unknown Command SexTourist Scripting Help 12 03/01/2012 03:38 PM
Slap command returns an Unknown Command when player is not connected HydraX Help Archive 16 01/08/2011 05:19 AM
SERVER: Unknown Command when using a scripted command and it does execute! Moustafa Help Archive 6 11/06/2010 01:34 PM

All times are GMT. The time now is 08:06 AM.

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