this why?please help.
#1

./includes/commands.pwn(55562) : error 017: undefined symbol "ctstring" this why?please help.
*But i have this enum

PHP код:
enum customTextEnum
{
    
bool:ctExists,
    
ctString[255],
    
ctColor,
    
ctFont[32],
    
Float:ctX,
    
Float:ctY,
    
Float:ctZ,
    
Float:ctRX,
    
Float:ctRY,
    
Float:ctRZ,
    
ctSize,
    
ctModel,
    
ctBackColor,
    
ctObjectID
}; 
PHP код:
CMD:createcustomtext(playeridparams[])
{
    new 
cmdtext[255];
    new 
string1[512];
    new 
tmp1[150];
    new 
idx;
    if (
PlayerInfo[playerid][pAdmin] >= 1337)
    {
        
tmp1 strtok(cmdtextidx);
        if (!
strlen(tmp1))
        {
              
SendClientMessage(playerid0xFFFFFFFF"USAGE: /createcustomtext [text]");
            return 
1;
        }
        
strmid(tmp1cmdtextstrfind(cmdtext" ") + 1strlen(cmdtext));
        for (new 
0MAX_CUSTOM_TEXTS++)
        {
              if (!
CustomTextEnum[i][ctExists])
            {
                 new 
Float:x3Float:y3Float:z3Float:a1;
                
GetPlayerPos(playeridx3y3z3);
                
GetPlayerFacingAngle(playerida1);
                
x3 += (4.0 floatsin(-a1degrees));
                
y3 += (4.0 floatcos(a1degrees));
                
z3 += 5.5;
                
CustomTextEnum[i][ctExists] = true;
                
format(CustomTextEnum[i][ctstring], 255tmp1);
                
CustomTextEnum[i][ctColor] = 0xFF000000;
                
format(CustomTextEnum[i][ctFont], 32"Arial");
                
CustomTextEnum[i][ctX] = x3;
                
CustomTextEnum[i][ctY] = y3;
                   
CustomTextEnum[i][ctZ] = z3;
                   
CustomTextEnum[i][ctRX] = 0.0;
                  
CustomTextEnum[i][ctRY] = 0.0;
                
CustomTextEnum[i][ctRZ] = a1 180;
                
CustomTextEnum[i][ctObjectID] = CreateDynamicObject(2885x3y3z30.00.0a1);
                
CustomTextEnum[i][ctSize] = 24;
                   
CustomTextEnum[i][ctModel] = 2885;
                   
CustomTextEnum[i][ctBackColor] = 0xFFFFFFFF;
                
SetDynamicObjectMaterialText(CustomTextEnum[i][ctObjectID], 0Wrap(tmp1), ____0xFF0000000xFFFFFFFF1);
                
format(string1sizeof(string1), "You have created a custom text (ID: %d)."i);
                
SendClientMessage(playerid, -1string1);
                
format(string1sizeof(string1), "INSERT INTO `CustomTexts` (`ctID`) VALUES('%d')"i);
                
db_query(CustomTextDBstring1);
                
SaveCustomText(i);
                return 
1;
            }
        }
        
SendClientMessage(playerid0xAFAFAFFF"You cannot spawn any more custom texts.");
        return 
1;
    }
    else 
SendClientMessage(playerid0xAFAFAFFF"You are not authorized to use this command.");
    return 
1;

Reply
#2

Wrong section. Post here: http://forum.sa-mp.com/forumdisplay.php?f=12
Reply
#3

Yea,thax buddy!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)