SA-MP Forums

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 29/03/2012, 03:01 AM   #1
Reklez
Gangsta
 
Reklez's Avatar
 
Join Date: Mar 2012
Location: Philippines
Posts: 568
Reputation: 64
Default Foreach (Looping)?

Somehow when i setplayercolor onplayerconnect it sets player color to all except to me

everyone's color is white but my color on scoreboard is violet.
i don't know why but i try this

pawn Code:
SetPlayerColor(playerid, COLOR_WHITE);

but still the same i try to use foreach (a faster looping include)
but still the same look at the code

pawn Code:
foreach(Player, i)
    {
        TextDrawShowForPlayer(i, STime);
        TextDrawShowForPlayer(i, RandomT);
        SetPlayerColor(i, COLOR_WHITE);
        SetPlayerMapIcon(i, 0, 1753.7834,-1906.0804,13.5648, 55, 1, MAPICON_LOCAL); //LS Taxi Company
        SetPlayerMapIcon(i, 1, 2045.9188,-1913.0162,13.5469, 55, 1, MAPICON_LOCAL); //LS License Central
        SetPlayerMapIcon(i, 2, 2244.5542,-1664.9602,15.4766, 45, 1, MAPICON_LOCAL); //LS Clothe Shop
        SetPlayerMapIcon(i, 3, 1480.9535,-1770.7400,18.7958, 52, 1, MAPICON_LOCAL); //LS Bank Central
    }

i know its correct but can i use foreach for setting playermapicon/playercolor/playertextdraw?
__________________

Asking a reputation for Server Advertisement? You kidding me, You are totally n00b!
Reklez 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
Looping Franco Falcone Server Support 2 20/02/2012 06:16 PM
Looping through ini Swiftz Help Archive 0 27/06/2011 02:35 PM
Need help in looping tal4840 Help Archive 3 10/05/2011 07:55 PM
Looping :/ Lorenc_ Help Archive 2 13/04/2011 10:16 AM
Looping cu MOA Alxxie Română/Romanian 4 03/04/2010 06:56 PM


All times are GMT. The time now is 06:35 PM.


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