09.07.2015, 05:05
error 025: function heading differs from prototype
error 021: symbol already defined: "ReturnUser"
Help about this Code Guys!!!
error 021: symbol already defined: "ReturnUser"
Quote:
// ReturnUser (By ******) stock ReturnUser(playerid, text[])//http://pyrokid.pastebin.com/f57277676 { new pos = 0,string[256]; while (text[pos] < 0x21) // Strip out leading spaces { if (text[pos] == 0) return INVALID_PLAYER_ID; // No passed text pos++; } new userid = INVALID_PLAYER_ID; if (isNumeric(text[pos])) // Check whole passed string { // If they have a numeric name you have a problem (although names are checked on id failure) userid = strval(text[pos]); if (userid >=0 && userid < MAX_PLAYERS) { if(!IsPlayerConnected(userid)) { if (playerid != INVALID_PLAYER_ID) { //SendClientMessage(playerid, 0xFF0000AA, "User not connected"); format(string, 256, "%s Is Not A Valid ID.", text); if (playerid == -1) { //IRC_Say(gBotID, IRC_CHANNEL, string); }else{ SendClientMessage(playerid, COLOR_ERROR, string); } } userid = INVALID_PLAYER_ID; } else { return userid; // A player was found } } |