/weapon help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /weapon help (
/showthread.php?tid=365056)
/weapon help -
Armando B - 01.08.2012
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;
}
Re: /weapon help -
Kindred - 01.08.2012
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
Re: /weapon help -
TaLhA XIV - 01.08.2012
You just missed the inverted commas.
Re: /weapon help -
Armando B - 01.08.2012
Quote:
You forgot a " at the end of almost all SendClientMessage's
|
thanks