27.02.2009, 23:18
Код:
#include <a_samp> #define FILTERSCRIPT #if defined FILTERSCRIPT #pragma tabsize 0 #define COLOR_RED 0xFF0000AA new CP1; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Teste do Pai"); print("--------------------------------------\n"); CreateObject(974,1918.108,-1786.355,19.754,0.0,0.0,0.0); CreateObject(974,1914.743,-1783.047,19.754,0.0,0.0,-90.000); CreateObject(974,1914.738,-1776.375,19.754,0.0,0.0,-90.000); CreateObject(974,1928.099,-1782.914,19.754,0.0,0.0,-90.000); CreateObject(974,1928.115,-1776.207,19.738,0.0,0.0,-90.000); CreateObject(974,1924.792,-1772.876,19.754,0.0,0.0,-180.000); CreateObject(974,1914.736,-1769.695,19.754,0.0,0.0,-90.000); CreateObject(974,1921.390,-1769.612,19.804,0.0,0.0,-270.000); CreateObject(14411,1919.477,-1764.403,13.657,0.0,0.0,-180.000); CreateObject(14411,1916.670,-1764.093,13.449,0.0,0.0,-180.000); CreateObject(974,1920.307,-1769.612,23.614,-55.863,0.0,-270.000); CreateObject(974,1915.892,-1769.650,23.429,-51.566,0.0,-450.000); CreateObject(2775,1926.567,-1786.041,22.177,0.0,0.0,-180.000); CreateObject(2775,1923.149,-1786.068,22.176,0.0,0.0,-180.000); CreateObject(974,1924.797,-1786.319,19.754,0.0,0.0,0.0); CreateObject(2775,1919.744,-1786.048,22.181,0.0,0.0,-180.000); CreateObject(2775,1916.360,-1786.023,22.203,0.0,0.0,-180.000); CreateObject(2773,1921.508,-1773.999,17.494,0.0,0.0,0.0); CreateObject(2773,1921.491,-1776.720,17.494,0.0,0.0,0.0); CreateObject(2773,1921.487,-1779.389,17.494,0.0,0.0,0.0); CreateObject(1704,1915.473,-1786.065,16.973,0.0,0.0,90.000); CreateObject(1704,1915.474,-1784.915,16.973,0.0,0.0,90.000); CreateObject(1704,1915.453,-1783.802,16.973,0.0,0.0,90.000); CreateObject(1704,1915.475,-1782.678,16.973,0.0,0.0,90.000); CreateObject(1704,1915.449,-1781.592,16.973,0.0,0.0,90.000); CreateObject(1704,1915.455,-1780.488,16.973,0.0,0.0,90.000); CreateObject(1704,1915.455,-1779.344,16.973,0.0,0.0,90.000); CreateObject(1704,1915.462,-1778.247,16.973,0.0,0.0,90.000); CreateObject(1704,1915.443,-1777.104,16.973,0.0,0.0,90.000); CreateObject(2773,1921.505,-1782.089,17.494,0.0,0.0,0.0); CreateObject(1998,1922.876,-1784.997,16.977,0.0,0.0,-270.000); CreateObject(1998,1926.563,-1774.613,16.977,0.0,0.0,-630.000); CreateObject(1998,1923.252,-1774.614,16.977,0.0,0.0,-990.000); CreateObject(1998,1926.446,-1784.535,16.977,0.0,0.0,-1170.000); CreateObject(1998,1926.458,-1781.191,16.977,0.0,0.0,-1170.000); CreateObject(926,1927.605,-1776.266,17.226,0.0,0.0,0.0); CreateObject(926,1927.548,-1776.324,17.751,0.0,0.0,0.0); CreateObject(926,1927.648,-1776.796,17.226,0.0,0.0,0.0); CreateObject(926,1927.616,-1775.714,17.226,0.0,0.0,0.0); CreateObject(926,1927.660,-1775.757,17.734,0.0,0.0,0.0); CreateObject(926,1927.539,-1776.264,18.226,0.0,0.0,0.0); CreateObject(928,1926.755,-1776.930,17.235,0.0,0.0,0.0); CreateObject(928,1927.333,-1777.373,17.235,0.0,0.0,0.0); CreateObject(1216,1915.242,-1775.613,17.669,0.0,0.0,-270.000); CreateObject(1216,1915.263,-1774.927,17.669,0.0,0.0,-270.000); CreateObject(1215,1915.007,-1766.608,17.541,0.0,0.0,0.0); CreateObject(1215,1921.149,-1766.466,17.541,0.0,0.0,0.0); CreateObject(1715,1926.311,-1782.041,17.018,0.0,0.0,90.000); CreateObject(1715,1922.933,-1783.939,17.018,0.0,0.0,-90.000); CreateObject(1715,1926.133,-1785.276,17.018,0.0,0.0,-270.000); CreateObject(1715,1923.310,-1773.777,17.018,0.0,0.0,-450.000); CreateObject(1715,1926.475,-1773.920,17.018,0.0,0.0,-450.000); CreateObject(1514,1922.835,-1785.041,18.054,0.0,0.0,0.0); CreateObject(974,1950.444,-1779.213,21.303,0.0,0.0,-90.000); CreateObject(974,1947.084,-1775.897,21.303,0.0,0.0,-180.000); CreateObject(974,1943.719,-1779.230,21.303,0.0,0.0,-270.000); CreateObject(974,1947.041,-1784.788,16.828,128.056,-0.859,-360.000); CreateObject(974,1946.969,-1788.520,13.911,128.056,-0.859,-360.000); CreateObject(1723,1944.187,-1776.810,18.523,0.0,0.0,0.0); CreateObject(1723,1947.694,-1776.816,18.574,0.0,0.0,0.0); CreateObject(2754,1946.974,-1776.955,19.427,0.0,0.0,90.000); CreateObject(2754,1915.320,-1773.812,17.879,0.0,0.0,180.000); return 1; } #endif public OnPlayerSpawn(playerid) { CP1 = SetPlayerCheckpoint(playerid, 1919.8975, -1784.5105, 17.9766, 3.00); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/destinos", cmdtext, true) == 0) { if(IsPlayerInCheckpoint(playerid) == CP1) SendClientMessage(playerid, COLOR_RED, "[DESTINOS] Para ir a Sгo Paulo digite /sp"); } { else if(IsPlayerInCheckpoint(playerid) != CP1); SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб no checkpoint do aeroporto!"); } return 1; } if (strcmp("/sp", cmdtext, true) == 0) { if(IsPlayerInCheckpoint(playerid) == CP1) if(GetPlayerMoney(playerid) >= 300) GivePlayerMoney(playerid, -50); SendClientMessage(playerid, COLOR_RED, "Passagem comprada, bem vindo ao seu destino!"); SetPlayerPos(playerid, 1945.3314,-1778.8710,19.5250,181.2271) } else if(IsPlayerInCheckpoint(playerid) != CP1); { { SendClientMessage(playerid, COLOR_RED, "Vocк nгo estб no checkpoint do aeroporto"); } else if(GetPlayerMoney(playerid) < 50) { SendClientMessage(playerid, COLOR_RED, "Vocк nгo tem dinheiro suficiente!"); } return 1; } return 0; }
Код:
C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\FILTER~1\TESTED~1.PWN(98) : error 029: invalid expression, assumed zero C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\FILTER~1\TESTED~1.PWN(98) : warning 215: expression has no effect C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\FILTER~1\TESTED~1.PWN(98) : error 001: expected token: ";", but found "if" C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\FILTER~1\TESTED~1.PWN(98) : error 036: empty statement C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\FILTER~1\TESTED~1.PWN(98) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
ANSWER IT PLEASE D