/weapon help
#1

what is the problem here?

if(strcmp(cmdtext, "/weapon", true) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}(INFO) Please Use /weapon [pack].");
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[PACK1] Baseball Bat,Colt 45,Shotgun.);
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[PACK2] Baseball Bat,Desert Eagle,AK 47.);
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[PACK3] Knife,Desert Eagle,M4A1.);
return 1;
}
Reply
#2

Try this:

pawn Код:
if(strcmp(cmdtext, "/weapon", true) == 0)
{
    SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}(INFO) Please Use /weapon [pack].");
    SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[PACK1] Baseball Bat,Colt 45,Shotgun.");
    SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[PACK2] Baseball Bat,Desert Eagle,AK 47.");
    SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}[PACK3] Knife,Desert Eagle,M4A1.");
    return 1;
}
You forgot a " at the end of almost all SendClientMessage's
Reply
#3

You just missed the inverted commas.
Reply
#4

Quote:

You forgot a " at the end of almost all SendClientMessage's

thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)