25.06.2015, 15:03
(
Последний раз редактировалось Scylles; 25.06.2015 в 21:45.
)
I'am tryin make a laser system but I have some errors. Please Help me and I am sorry for my bad english.
Код:
C:\Users\Mertcan\Desktop\mod\v2.0 - Windows\gamemodes\tcgaming.pwn(25217) : error 010: invalid function or declaration C:\Users\Mertcan\Desktop\mod\v2.0 - Windows\gamemodes\tcgaming.pwn(25226) : warning 209: function "cmd_lazerkapat" should return a value C:\Users\Mertcan\Desktop\mod\v2.0 - Windows\gamemodes\tcgaming.pwn(25227) : error 010: invalid function or declaration C:\Users\Mertcan\Desktop\mod\v2.0 - Windows\gamemodes\tcgaming.pwn(25245) : warning 209: function "cmd_lazerrenk" should return a value C:\Users\Mertcan\Desktop\mod\v2.0 - Windows\gamemodes\tcgaming.pwn(25246) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
PHP код:
CMD:lazerac(playerid, params[])
if(PlayerInfo[playerid][pDonator]>0)
{
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "color", GetPVarInt(playerid, "color"));
}
else SendClientMessage(playerid, COLOR_GREY, "VIP değilsin.");
return 1;//////Line 25217
}
CMD:lazerkapat(playerid, params[])
if(PlayerInfo[playerid][pDonator]>0)
{
SetPVarInt(playerid, "laser", 0);
RemovePlayerAttachedObject(playerid, 0);
}
else return SendClientMessage(playerid, COLOR_GREY, "VIP değilsin.");//////Line 25226
return 1;//////Line 25227
}
CMD:lazerrenk(playerid, params[])
if(PlayerInfo[playerid][pDonator]>0)
{
new color[16];
if(sscanf(params, "s[15]", color)) return SendClientMessage(playerid, C_GREY, "Kullanım: /lazerrenk [renk]");
SendClientMessage(playerid, C_GREY, "Kirmizi, Mavi, Pembe, Turuncu, Yeşil, Sari");
if(!strcmp(color, "kirmizi", true)) SetPVarInt(playerid, "color", 18643);
else if(!strcmp(color, "mavi", true)) SetPVarInt(playerid, "color", 19080);
else if(!strcmp(color, "pembe", true)) SetPVarInt(playerid, "color", 19081);
else if(!strcmp(color, "turuncu", true)) SetPVarInt(playerid, "color", 19082);
else if(!strcmp(color, "yeşil", true)) SetPVarInt(playerid, "color", 19083);
else if(!strcmp(color, "sari", true)) SetPVarInt(playerid, "color", 19084);
else SendClientMessage(playerid, C_VIOLET, "Geзerli Bir Renk Seзmediniz!");
}
else return SendClientMessage(playerid, COLOR_GREY, "VIP değilsin.");//////Line 25245
return 1;//////Line 25246
}