Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   clear players attr (https://forums.graalonline.com/forums/showthread.php?t=134262319)

callimuc 03-05-2011 01:40 PM

clear players attr
 
Hey there.
Well after I messed up experimenting with scripts, I must have messed up my attributes. So I wanted to ask if there is any way to clear all player attributes at once? I just know how to remove just one at once.
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
player.attr[1] = "";
  
player.attr[2] = "";
  
player.attr[3] = "";
  
player.attr[4] = "";
  
//...


That would make it way easier if I can remove them all at once :)

Crow 03-05-2011 01:44 PM

PHP Code:

for (temp.1<= 30i++)
  
player.attr[i] = ""



All times are GMT +2. The time now is 10:03 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.