04.07.2006, 12:11
can someone help? i\'m idiot in scripting (NO I DONT WANT TO LEARN), can somebody help with this? i integrate all this script and it gets a lot of errors
i want to make it like filterscript, i almost got it, but some kind off shit. can someone help?
this is the errors
here is the script
i want to make it like filterscript, i almost got it, but some kind off shit. can someone help?
Code:
D:\MYGAME~1\GTASAN~1\samp\pawno ew.pwn(19) : error 017: undefined symbol "cmd" D:\MYGAME~1\GTASAN~1\samp\pawno ew.pwn(23) : error 017: undefined symbol "playername" D:\MYGAME~1\GTASAN~1\samp\pawno ew.pwn(23) : error 017: undefined symbol "playername" D:\MYGAME~1\GTASAN~1\samp\pawno ew.pwn(23) : error 029: invalid expression, assumed zero D:\MYGAME~1\GTASAN~1\samp\pawno ew.pwn(23) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.0.3367 Copyright © 1997-2005, ITB CompuPhase 5 Errors.
here is the script
Code:
#include <a_samp> public OnFilterScriptInit() { print(" ----------------------------------"); print("Filterscript Blah sucessfully loaded"); print("---------------------------------- "); } public OnFilterScriptExit() { print(" ----------------------------------"); print("Filterscript Blah sucessfully un-loaded"); print("---------------------------------- "); } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmd, "/report") == 0) { if (strlen(cmdtext) > 8) { GetPlayerName(playerid, playername, sizeof(playername)); format(string, sizeof(string), "Report from %s(%d): %s", playername, playerid, cmdtext[8]); SendMessageToAdmins(string); format(string, sizeof(string), "Report sent to currently online admins."); SendMessage(playerid, string); } else { format(string, sizeof(string), "Usage: /report <text to send>"); SendMessage(playerid, string); } return 1; } -------------------------------------------- SendMessageToAdmins(const str[]) { for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (IsPlayerAdmin(i)) { SendClientMessage(i, 0xFF9900AA, str); } } } } SendMessage(playerid, const str[]) { SendClientMessage(playerid, 0xFF9900AA, str); }