04.10.2010, 02:11
Hey Guys, Im Trying to make a Bartender Command That has 2 Name Strings in it.
But I Keep getting an Error "Argument 2" Im sure this is Pretty Simple Actually. Im not sure how to go about fixing it. Any help would be Appreciated.
kthxbai
Quote:
if (strcmp("/barsell", cmdtext, true, 5) == 0) { new tmp[30]; tmp = strtok(cmdtext, idx); new otherplayer = strval(tmp); new str[128]; new seller; new sellerid; GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(seller, sendername, sizeof(sellerid)); format(str, sizeof(str), "%s Gave %s a Drink", sendername, sellerid, sendername, str, cmdtext[9]); SendClientMessageToAll(0xC2A2DAAA, str); if(IsPlayerConnected(otherplayer)) { format(str, sizeof(str), "%s Gave You a Drink", sendername, str, cmdtext[9]); } return 1; } |
kthxbai