12.01.2011, 03:23
im trying to make a command
then get these errors
what do i do? please help
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { new idx; if (strcmp("/asslick", cmdtext, true)) { new tmp[30]; tmp = strtok(cmdtext, idx); new otherplayer = strval(tmp); if(!strlen(tmp)) return SendClientMessage(playerid, 0x919191FF, "Usage: /asslick [id]"); if(IsPlayerConnected(otherplayer)) { SendClientMessage(playerid, #F781F3," You're now Asslicking %d ! Have a good time doing it! also heres $1 for you " ); SendClientMessageToAll(#F781F3, "%s is now asslicking %d ! He should be proud of himself!" ); SendClientMessage(otherplayer, 0xE21D2CFF, "%d is now asslicking you! he be good friend! " ); GivePlayerMoney(playerid, 1); } else { SendClientMessage(#F781F3, "Haha!, The Player you are trying to asslick isn't online! noob."); } return 1; } return 0; } |
Quote:
C:\Documents and Settings\gamer\Desktop\MW-DM\filterscripts\asslick.pwn(16) : error 035: argument type mismatch (argument 2) C:\Documents and Settings\gamer\Desktop\MW-DM\filterscripts\asslick.pwn(17) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\gamer\Desktop\MW-DM\filterscripts\asslick.pwn(23) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |