//-------------------------------------------------------------------------- // -> Server's 3D Texts //-------------------------------------------------------------------------- strcat(SpawnPlace3D, "{0072FF}Spawn Zone\n\ {00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\ {0072FF}www.XSW-Servers.com");<======LINE---------------------- //-------------------------------------------------------------------------- Create3DTextLabel(SpawnPlace3D, BLUE, 404.2386,2453.6709,16.6602, 50, 0, 0); // AA
expected token: ";", but found "-identifier-"
strcat(SpawnPlace3D, "{0072FF}Spawn Zone\n" \ "{00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n" \ "{0072FF}www.XSW-Servers.com");
new SpawnPlace3D[] = {"{0072FF}Spawn Zone\n" \ "{00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n" \ "{0072FF}www.XSW-Servers.com"};
For each new line of text you're adding in this way, you need to close the string and open it again. By doing "\
Код:
strcat(SpawnPlace3D, "{0072FF}Spawn Zone\n" \ "{00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n" \ "{0072FF}www.XSW-Servers.com"); Код:
new SpawnPlace3D[] = {{0072FF}Spawn Zone\n" \ "{00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n" \ "{0072FF}www.XSW-Servers.com"}; |
new SpawnPlace3D[] = {"{0072FF}Spawn Zone\n" \ "{00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n" \ "{0072FF}www.XSW-Servers.com"};
new Text3D:SpawnPlace3D, string[256];
format(string, sizeof(string), "{0072FF}Spawn Zone\n\
{00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\
{0072FF}www.XSW-Servers.com");
SpawnPlace3D = Create3DTextLabel(string, 0x0000FFFF, 404.2386, 2453.6709, 16.6602, 40.0, 0, 0);
PHP код:
|
C:\Users\Sorin\Desktop\eXtreme Stunt World\XSW V1\gamemodes\XSW_Full.pwn(702) : warning 217: loose indentation C:\Users\Sorin\Desktop\eXtreme Stunt World\XSW V1\gamemodes\XSW_Full.pwn(704) : warning 217: loose indentation
format(string, sizeof(string), "{0072FF}Spawn Zone\n\ {00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\ {0072FF}www.XSW-Servers.com");------------------------< //-------------------------------------------------------------------------- Create3DTextLabel(string, BLUE, 404.2386,2453.6709,16.6602, 50, 0, 0); // AA------------------------< Create3DTextLabel(string, BLUE, 1887.8350,-2625.3059,13.6016, 50, 0, 0); // LSAir Create3DTextLabel(string, BLUE, -1370.0363,-256.3452,18.7700, 50, 0, 0); // SFAir Create3DTextLabel(string, BLUE, 1602.5377,1311.2509,13.6200, 50, 0, 0); // LVAir Create3DTextLabel(string, BLUE, -2345.4111,-1623.9098,483.9355, 50, 0, 0); // Chilliad Create3DTextLabel(string, BLUE, 1420.3746,2773.9958,11.0972, 50, 0, 0); // Stunt Golf
I's work,but nou i'm have this errors:
Код:
C:\Users\Sorin\Desktop\eXtreme Stunt World\XSW V1\gamemodes\XSW_Full.pwn(702) : warning 217: loose indentation C:\Users\Sorin\Desktop\eXtreme Stunt World\XSW V1\gamemodes\XSW_Full.pwn(704) : warning 217: loose indentation Код:
format(string, sizeof(string), "{0072FF}Spawn Zone\n\ {00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\ {0072FF}www.XSW-Servers.com");------------------------< //-------------------------------------------------------------------------- Create3DTextLabel(string, BLUE, 404.2386,2453.6709,16.6602, 50, 0, 0); // AA------------------------< Create3DTextLabel(string, BLUE, 1887.8350,-2625.3059,13.6016, 50, 0, 0); // LSAir Create3DTextLabel(string, BLUE, -1370.0363,-256.3452,18.7700, 50, 0, 0); // SFAir Create3DTextLabel(string, BLUE, 1602.5377,1311.2509,13.6200, 50, 0, 0); // LVAir Create3DTextLabel(string, BLUE, -2345.4111,-1623.9098,483.9355, 50, 0, 0); // Chilliad Create3DTextLabel(string, BLUE, 1420.3746,2773.9958,11.0972, 50, 0, 0); // Stunt Golf |
format(string, sizeof(string), "{0072FF}Spawn Zone\n\{00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\{0072FF}www.XSW-Servers.com");------------------------<
//--------------------------------------------------------------------------
Create3DTextLabel(string, BLUE, 404.2386,2453.6709,16.6602, 50, 0, 0); // AA------------------------<
Create3DTextLabel(string, BLUE, 1887.8350,-2625.3059,13.6016, 50, 0, 0); // LSAir
Create3DTextLabel(string, BLUE, -1370.0363,-256.3452,18.7700, 50, 0, 0); // SFAir
Create3DTextLabel(string, BLUE, 1602.5377,1311.2509,13.6200, 50, 0, 0); // LVAir
Create3DTextLabel(string, BLUE, -2345.4111,-1623.9098,483.9355, 50, 0, 0); // Chilliad
Create3DTextLabel(string, BLUE, 1420.3746,2773.9958,11.0972, 50, 0, 0); // Stunt Golf
I's work,but nou i'm have this errors:
Код:
C:\Users\Sorin\Desktop\eXtreme Stunt World\XSW V1\gamemodes\XSW_Full.pwn(702) : warning 217: loose indentation C:\Users\Sorin\Desktop\eXtreme Stunt World\XSW V1\gamemodes\XSW_Full.pwn(704) : warning 217: loose indentation Код:
format(string, sizeof(string), "{0072FF}Spawn Zone\n\ {00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\ {0072FF}www.XSW-Servers.com");------------------------< //-------------------------------------------------------------------------- Create3DTextLabel(string, BLUE, 404.2386,2453.6709,16.6602, 50, 0, 0); // AA------------------------< Create3DTextLabel(string, BLUE, 1887.8350,-2625.3059,13.6016, 50, 0, 0); // LSAir Create3DTextLabel(string, BLUE, -1370.0363,-256.3452,18.7700, 50, 0, 0); // SFAir Create3DTextLabel(string, BLUE, 1602.5377,1311.2509,13.6200, 50, 0, 0); // LVAir Create3DTextLabel(string, BLUE, -2345.4111,-1623.9098,483.9355, 50, 0, 0); // Chilliad Create3DTextLabel(string, BLUE, 1420.3746,2773.9958,11.0972, 50, 0, 0); // Stunt Golf |
format(string, sizeof(string), "{0072FF}Spawn Zone\n\ {00FF00}Type {FF0000}/HM {00FF00}for free Heal & Armour!\n\ {0072FF}www.XSW-Servers.com"); Create3DTextLabel(string, BLUE, 404.2386,2453.6709,16.6602, 50, 0, 0); // AA Create3DTextLabel(string, BLUE, 1887.8350,-2625.3059,13.6016, 50, 0, 0); // LSAir Create3DTextLabel(string, BLUE, -1370.0363,-256.3452,18.7700, 50, 0, 0); // SFAir Create3DTextLabel(string, BLUE, 1602.5377,1311.2509,13.6200, 50, 0, 0); // LVAir Create3DTextLabel(string, BLUE, -2345.4111,-1623.9098,483.9355, 50, 0, 0); // Chilliad Create3DTextLabel(string, BLUE, 1420.3746,2773.9958,11.0972, 50, 0, 0); // Stunt Golf