SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 06/07/2011, 04:30 AM   #1
HayZatic
Banned
 
Join Date: Jun 2011
Posts: 239
Reputation: 2
Default [help] I HAve An Very Small Issue [not Error] Issue

So this is my script

Code:
COMMAND:fog(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
	    if(PlayerInfo[playerid][AdminLevel] >= 4)
	    {
        SetPlayerWeather ( playerid , 9 );
        SendClientMessageToAll(0x33FF33AA,"Weather Changed To Fog");
        new Float:pX, Float:pY, Float:pZ;
		PlayerPlaySound(playerid,1057,pX,pY,pZ);
		return 1;
			}
	    else return SendClientMessage(playerid, 0xD8D8D8FF, "You are not allowed to use this command.");
	}
	else return SendClientMessage(playerid, 0xD8D8D8FF, "Player is not connected.");
}
When I use it, it only change the weather for me. This is probally because of

Code:
SetPlayerWeather ( playerid , 9 );
Playerid.
Is there something i can replace playerid with or something? please help
HayZatic is offline  
Old 06/07/2011, 04:33 AM   #2
HayZatic
Banned
 
Join Date: Jun 2011
Posts: 239
Reputation: 2
Default Re: [help] I HAve An Very Small Issue [not Error] Issue

Fixed i used instead , SetWeather(20);
HayZatic is offline  
 

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
Small command issue. Scriptissue Help Archive 0 14/10/2010 04:11 PM
Very small issue with a script. Scriptissue Help Archive 4 29/09/2010 07:49 PM
Small Issue I can't figure out. Toni Help Archive 4 28/07/2010 12:08 AM
A Small Issue TKZ227 Help Archive 0 24/05/2010 02:43 PM
Having a small issue with my IRC script Leethan Help Archive 1 12/07/2009 05:51 PM


All times are GMT. The time now is 07:56 AM.


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