Quote:
Originally Posted by lrZ^ aka LarzI
example:
pawn Код:
if(!strcmp(cmdtext, "/buyfood", true)) { new food[128]; format(food, 128, "%s", cmdtext[9]); if(cmdtext[9] == 32 && cmdtext[8] != EOS) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: \"/buyfood [food-name]\""); if(!strcmp(food, "hamburger and fries", true)) { //Stuff } //more statements if you want, which you probally do. return true; }
|
Could somebody show me how to this with sscanf to ? Thank you.