SendClientMessage(player,COLOR_RED, "You are not on Xmas Tree");
/getgift Case 1; Cash 200$ Case 2; Weapons (usualy not like Miniguns) Case 3; Another Skin (I DONT GEAR WHAT SKIN) Case 4; Your Own Car
CMD:getgift(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, radius, x, y, z) //radius that they can type it in
{
new rand[5];
switch(rand)
{
case 0: GivePlayerMoney(playerid, 200); //playerid, amount
case 1: GivePlayerWeapon(playerid, 24, 200); //playerid, gunid, ammo
case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
case 3: CreateVehicle(car, X+3,Y,Z, Angle, color1, color2, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
default: return 1;
}
}
return 1;
}
i use zcmd..so thats what i give you lol
pawn Код:
|
gift.TMP(89) : error 029: invalid experession, assumed zero gift.TMP(89) : error 017: undefined symbel "cmd_getgift" gift.TMP(89) : error 029: invalid experession, assumed zero gift.TMP(89) : fatal error 107: too many error messages on one line
CMD:getgift(playerid, params[]) } if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6) //radius that they can type it in { new rand[5]; switch(rand) { case 0: GivePlayerMoney(playerid, 200); //playerid, amount case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo case 2: SetPlayerSkin(playerid, 264); //playerid, skinid case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay default: return 1; } } return 1; }
C:\Users\eesti\Desktop\gift.pwn(88) : error 029: invalid expression, assumed zero C:\Users\eesti\Desktop\gift.pwn(88 -- 89) : warning 215: expression has no effect C:\Users\eesti\Desktop\gift.pwn(89) : error 001: expected token: ";", but found "forward" C:\Users\eesti\Desktop\gift.pwn(90) : error 029: invalid expression, assumed zero C:\Users\eesti\Desktop\gift.pwn(90 -- 91) : warning 215: expression has no effect C:\Users\eesti\Desktop\gift.pwn(91) : error 001: expected token: ";", but found "if" C:\Users\eesti\Desktop\gift.pwn(94) : error 010: invalid function or declaration C:\Users\eesti\Desktop\gift.pwn(96) : error 010: invalid function or declaration C:\Users\eesti\Desktop\gift.pwn(97) : error 010: invalid function or declaration C:\Users\eesti\Desktop\gift.pwn(98) : error 010: invalid function or declaration C:\Users\eesti\Desktop\gift.pwn(99) : error 010: invalid function or declaration C:\Users\eesti\Desktop\gift.pwn(100) : error 010: invalid function or declaration C:\Users\eesti\Desktop\gift.pwn(103) : error 010: invalid function or declaration C:\Users\eesti\Desktop\gift.pwn(241) : warning 203: symbol is never used: "rand" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 11 Errors.
I have #include <zcmd>
can you make this do Filterscript or upload it do pastebin Код:
CMD:getgift(playerid, params[]) } if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6) //radius that they can type it in { new rand[5]; switch(rand) { case 0: GivePlayerMoney(playerid, 200); //playerid, amount case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo case 2: SetPlayerSkin(playerid, 264); //playerid, skinid case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay default: return 1; } } return 1; } |
CMD:getgift(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6)) //radius that they can type it in
{
new rand[5];
switch(rand)
{
case 0: GivePlayerMoney(playerid, 200); //playerid, amount
case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
default: return 1;
}
}
return 1;
}
CMD:getgift(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 100, -1546, 546, 6)) //radius that they can type it in
{
new rand = random(5);
switch(rand)
{
case 0: GivePlayerMoney(playerid, 200); //playerid, amount
case 1: GivePlayerWeapon(playerid, 31, 200); //playerid, gunid, ammo
case 2: SetPlayerSkin(playerid, 264); //playerid, skinid
case 3: CreateVehicle(426, -1552,528,6, 100, 1, 1, -1); //car model id, x,y,z,angle,col1,col2,respawn delay
default: SendClientMessage(playerid, COLOR_RED,"You get coal chump");
}
}
return 1;
}