SA-MP Forums Archive
Help Help - 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)
+--- Thread: Help Help (/showthread.php?tid=571023)



Help Help - Azula - 15.04.2015

PHP код:
tZone[i] = CreateDynamic3DTextLabelWriteLabel(text), 0xAA3333FFZoneInfo[i][zCPX], ZoneInfo[i][zCPY], ZoneInfo[i][zCPZ], 50.0); 
PHP код:
WriteLabel(text) { SetTimerEx("WriteLabelUpdate"1000true,"i",text);  } 
PHP код:
forward WriteLabelUpdate(text); public WriteLabelUpdate(text){
    for(new 
0MAX_TESTi++)
    {
        if(
ZoneInfo[i][zTaken] == false){
            
text "You Can";
        }
        if(
ZoneInfo[i][zTaken] == true){
            
text "You Can't";
        }
    }

i try to update text label

Quote:

error 017: undefined symbol "text"
error 006: must be assigned to an array
error 006: must be assigned to an array

Help please and thank


Respuesta: Help Help - JuanStone - 15.04.2015

The problem is, I think, that you are trying to save a text in a variable integer, recalls that texts you must save them in variable string.

PHP код:
public WriteLabelUpdate(text[])
{
    
text "You Can't";




Re: Help Help - Azula - 15.04.2015

thank you now just one error

Quote:

error 017: undefined symbol "text"

line :
PHP код:
tZone[i] = CreateDynamic3DTextLabelWriteLabel(text), 0xAA3333FFZoneInfo[i][zCPX], ZoneInfo[i][zCPY], ZoneInfo[i][zCPZ], 50.0); 



Respuesta: Help Help - JuanStone - 15.04.2015

You must enter a text , you don't have declared the variable string "text".

PHP код:
tZone[i] = CreateDynamic3DTextLabelWriteLabel(""), 0xAA3333FFZoneInfo[i][zCPX], ZoneInfo[i][zCPY], ZoneInfo[i][zCPZ], 50.0); 
OR

PHP код:

new text[5] = "hello";

tZone[i] = CreateDynamic3DTextLabelWriteLabel(text), 0xAA3333FFZoneInfo[i][zCPX], ZoneInfo[i][zCPY], ZoneInfo[i][zCPZ], 50.0); 



Re: Help Help - J4Rr3x - 15.04.2015

- REMOVED -