19.03.2011, 16:38
Hi,
I have a code for /n chat, can't seem to compile it
errors:
I have a code for /n chat, can't seem to compile it
Код:
if(strcmp(cmd, "/newbie", true) == 0 || strcmp(cmd, "/n", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) } return SendClientMessage( playerid, WHITE, "You haven`t logged in yet." ); { if(PlayerInfo[playerid][pTut] == 0) } return Kick( playerid ); { if((nonewbie) && PlayerInfo[playerid][pAdmin] < 3) } return SendClientMessage( playerid, COLOR_GREY, "The Newbie channel has been disabled by an Admin !" ); { if(PlayerInfo[playerid][pNewbieMuted] == 1) } return SendClientMessage(playerid, COLOR_GREY, "You are banned from speaking in that channel !" ); { if( UseNewbieTimer[playerid] == true ) return SendClientMessage(playerid,COLOR_GREY,"You must wait 50 seconds before speaking in that channel !" ); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[96]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) } return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/n)ewbie [newbie chat]"); } if(PlayerInfo[playerid][pLevel] > 1 && PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 0) format(string, sizeof(string), "** Player %s: %s", sendername, result); else if(PlayerInfo[playerid][pAdmin] >= 2) format(string, sizeof(string), "** Admin %s: %s", sendername, result); else if(PlayerInfo[playerid][pHelper] >= 2) format(string, sizeof(string), "** Head Helper %s: %s", sendername, result); else if(PlayerInfo[playerid][pDonateRank] >= 1) format(string, sizeof(string), "** VIP ** %s: %s", sendername, result); else if(PlayerInfo[playerid][pHelper] == 1) format(string, sizeof(string), "** Helper %s: %s", sendername, result); else format(string, sizeof(string), "** Newbie %s: %s", sendername, result); OOCNewbie( NEWBIE_COLOR, string ); { if(PlayerInfo[playerid][pAdmin] <= 1 && PlayerInfo[playerid][pHelper] <= 1) UseNewbieTimer[playerid] = true; SetTimerEx("UseNewbie",50*1000,0,"i",playerid); } } } }
Код:
C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(2627) : error 004: function "FixHour" is not implemented C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(3997) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(4011) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(4417) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(4432) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(4486) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(4579) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(4589) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(4707) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(5437) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(5450) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(5680) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(5695) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(7245) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(7569) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(7582) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(10284) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(11401) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(11453) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(11528) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(11567) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(11583) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(11602) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(11621) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12597) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12598) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12627) : error 017: undefined symbol "encode_tires" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12643) : error 017: undefined symbol "encode_tires" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12642) : warning 204: symbol is assigned a value that is never used: "carid" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12643) : warning 204: symbol is assigned a value that is never used: "tires" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12641) : warning 203: symbol is never used: "lights" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12641) : warning 203: symbol is never used: "doors" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12641) : warning 203: symbol is never used: "panels" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12659) : error 017: undefined symbol "encode_tires" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12658) : warning 204: symbol is assigned a value that is never used: "carid" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12659) : warning 204: symbol is assigned a value that is never used: "tires" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12657) : warning 203: symbol is never used: "lights" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12657) : warning 203: symbol is never used: "doors" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12657) : warning 203: symbol is never used: "panels" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12693) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(12700) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(13310) : error 017: undefined symbol "ProxDetector" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(13577) : warning 217: loose indentation C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(15088) : error 004: function "FixHour" is not implemented C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(16413) : error 004: function "FixHour" is not implemented C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(16485) : error 004: function "FixHour" is not implemented C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(17852) : error 017: undefined symbol "dcmd_oprison" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(17854) : error 017: undefined symbol "dcmd_unban" C:\Users\Marta\Desktop\samp03csvr_win32\pawno\GLRP.pwn(17855) : error 017: undefined symbol "dcmd_banaccount" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.