SA-MP Forums Archive
Really need help now. can't figure out after a phew weeks. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Really need help now. can't figure out after a phew weeks. (/showthread.php?tid=128576)



Really need help now. can't figure out after a phew weeks. - bartje01 - 18.02.2010

Hey guys. I really need help. I want that when you disconnect with a color. Lets take as example red.
I want that when you disconnect your color saves.
And when you connect. SO not logged in yet. but just when you are connected your name color loads again.


I tryed many things. I really can't come out guys. I really need help now. Please help me.

This is my script http://pastebin.com/m8718423


Re: Really need help now. can't figure out after a phew weeks. - bartje01 - 18.02.2010

Why is there never anyone with an answer on this question?


Re: Really need help now. can't figure out after a phew weeks. - bartje01 - 19.02.2010

Help please.


Re: Really need help now. can't figure out after a phew weeks. - bartje01 - 19.02.2010

Serious guys


Re: Really need help now. can't figure out after a phew weeks. - IcyBlight - 19.02.2010

Dude, getting help with more complex issues is extremely rare on this forum, if you don't offer money. Know it too well. Sorry but I can't help you, I kinda have the same issue myself.


Re: Really need help now. can't figure out after a phew weeks. - MadeMan - 19.02.2010

OnPlayerConnect

pawn Код:
SetPlayerColor(playerid, dUserINT(PlayerName2(playerid)).("color"));
OnPlayerDisconnect

pawn Код:
dUserSetINT(PlayerName2(playerid)).("color",GetPlayerColor(playerid));



Re: Really need help now. can't figure out after a phew weeks. - bajskorv123 - 19.02.2010

Quote:
Originally Posted by MadeMan
OnPlayerConnect

pawn Код:
SetPlayerColor(playerid, dUserINT(PlayerName2(playerid)).("color"));
OnPlayerDisconnect

pawn Код:
dUserSetINT(PlayerName2(playerid)).("color",GetPlayerColor(playerid));
Taken from lAdmin, bartje has to edit it, and use dudb.
And GetPlayerColor isnt working unless you have used SetPlayerColor...
And theres a lot of unused variables.

I am sorry Bartje, but you can't do this i think (Yet, i hope kye fixes the getplayercolor)


Re: Really need help now. can't figure out after a phew weeks. - bartje01 - 19.02.2010

ahw. ok. damn xD Thanks for helping anyways


Re: Really need help now. can't figure out after a phew weeks. - bartje01 - 19.02.2010

Quote:
Originally Posted by MadeMan
OnPlayerConnect

pawn Код:
SetPlayerColor(playerid, dUserINT(PlayerName2(playerid)).("color"));
OnPlayerDisconnect

pawn Код:
dUserSetINT(PlayerName2(playerid)).("color",GetPlayerColor(playerid));
OMG LOL. NO wAIT. HE IS RIGHT. IT IS WORKING. HELL THANKS MATE. HELL YEAA