17.04.2013, 14:11
Oque tб errado nesse cуdigo?
Erros:
Код:
#include <a_samp> #include <streamer> #define PASTA_CONTAS "/Contas/%s.ini" new PortaoClick; new aname[MAX_PLAYER_NAME]; #if defined FILTERSCRIPT #else #endif public OnGameModeInit() { PortaoClick = CreateObject(980, 321.5, -1188.1999511719, 77.900001525879, 0.0000, 0.0000, 218.0000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext,"/abclick", true)==0){ GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); if(strcmp(aname, "AutoClick", true) == 0){ MoveObject(PortaoClick,312, -1195.6999511719, 77.699996948242, 3.0, 0.0000, 0.0000, 218.0000); SendClientMessage(playerid,0x607840AA, "Bem vindo AutoClick!"); return 1; } else { SendClientMessage(playerid,Vermelho,"Vocк nao й o AutoClick!"); } return 1; } if (strcmp(cmdtext,"/fbclick", true)==0){ GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), PASTA_CONTAS, aname); if(strcmp(aname, "AutoClick", true) == 0){ MoveObject(PortaoClick,321.5, -1188.1999511719, 77.900001525879, 3.0, 0.0000, 0.0000, 218.0000); SendClientMessage(playerid,0x607840AA, "Atй Logo AutoClick!"); return 1; } else { SendClientMessage(playerid,Vermelho,"Vocк nao й o AutoClick!"); } return 1; }
Код:
C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : error 017: undefined symbol "file" C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : error 017: undefined symbol "file" C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : error 029: invalid expression, assumed zero C:\Users\GUILHERME\Desktop\PortaoClick.pwn(24) : fatal error 107: too many error messages on one line