Fisher System Help
#1

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
new 
string[256];
CMD:baliklarim(playeridparams[])/////Line36
{
format(string,sizeof(string), "(( {33FF00}%d {FFFFFF}adet balığınız var. ))"Balik[playerid]);
SendClientMessage(playerid, -1,string);
return 
1;

Hı I found one Fisher System But it was stcmp. I was converted to zcmd. But I have a few Error at one Line.

Error:
PHP код:
C:\Users\Mertcan\AppData\Local\Temp\Rar$DIa0.271\balik.pwn(36) : error 029invalid expressionassumed zero
C
:\Users\Mertcan\AppData\Local\Temp\Rar$DIa0.271\balik.pwn(36) : error 017undefined symbol "cmd_baliklarim"
C:\Users\Mertcan\AppData\Local\Temp\Rar$DIa0.271\balik.pwn(36) : error 029invalid expressionassumed zero
C
:\Users\Mertcan\AppData\Local\Temp\Rar$DIa0.271\balik.pwn(36) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Reply
#2

Delete OnPlayerCommandText,
You need to put your CMD outside any publics,personally i did it at end of script also put
pawn Код:
CMD:baliklarim(playerid, params[])/////Line36
{
new string[256];
format(string,sizeof(string), "(( {33FF00}%d {FFFFFF}adet balığınız var. ))", Balik[playerid]);
SendClientMessage(playerid, -1,string);
return 1;
}
Also did u add #include <zcmd> ?
Reply
#3

OnPlayerCommand:
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
new 
string[256];
CMD:baliklarim(playeridparams[])
{
format(string,sizeof(string), "(( {33FF00}%d {FFFFFF}adet balığınız var. ))"Balik[playerid]);
SendClientMessage(playerid, -1,string);
return 
1;
}
CMD:balikci(playeridparams[])
{
if(
IsPlayerInRangeOfPoint(playerid1,359.908630, -2031.9619147.835937))
{
ShowPlayerDialog(playeridDBALIKDIALOG_STYLE_LIST"Balıkзı""Olta satın al\nBalık sat""Tamam","İptal");
return 
1;
}
}
CMD:baliktut(playeridparams[])
{
if(
IsPlayerInRangeOfPoint(playerid40.0382.310699, -2065.8203127.835937))
{
if(
Olta[playerid] == 1)
{
if(
BalikTutuyor[playerid] == 0)
{
TogglePlayerControllable(playerid0);
BalikTutuyor[playerid] = 1;
ApplyAnimation(playerid,"SWORD","sword_block",50.0,0,1,0,1,1);
SendClientMessage(playerid, -1"{FF9999}(( {FFFFFF}Balık tutmaya başladınız. {FF9999}))");
SetTimerEx("BalikTut"10000false"i"playerid);
}
return 
1;
}
SendClientMessage(playerid, -1"{FF9999}(( {FF0000}HATA: {FFFFFF}Oltanız yok. {FF9999}))");
return 
1;
}
SendClientMessage(playerid, -1"{FF9999}(( {FF0000}HATA: {FFFFFF}Yalnızca iskelede balık tutabilirsiniz. {FF9999})) ");
return 
1;
}
    
return 
0;

I already add zcmd at includes
Reply
#4

Put all CMD: code outside of OnPlayerCommand
Reply
#5

I Fix Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)