error 029: invalid expression, assumed zero
#1

Don't know why help me

Quote:

C:\Users\Ultimate Gaming\Downloads\Compressed\UG-RP 0.3z\UG-RP 0.3z\filterscripts\testjob.pwn(366) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new string[256];
if(dialogid == 115 && response)
{
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
woodcutter[playerid] = true;
Oldskin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, 133);
SetPlayerCheckpoint(playerid,-1898.4493,-2008.8124,80.6425,1.0);
SendClientMessage(playerid, COLOR_SYSTEM, "{EEADDF}>>{FFFFFF}Bat dau lam viec di chang trai, hay thu thap nhung khuc go tot nhat ve cho ta!");
ApplyAnimation(playerid,"CHAINSAW","WEAPON_csaw",4 .1,1,0,0,0,1);
ClearAnimations(playerid);
}
if(dialogid == 116 && response){//
woodcutter[playerid] = false;//
SetPlayerSkin(playerid,Oldskin[playerid]);//
DisablePlayerCheckpoint(playerid);//
GivePlayerCash(giveplayerid, kgcutt[playerid]*8 );
format(string, sizeof(string), "{EEADDF}>>{FFFFFF}Ban nhan duoc %d$ cho so %d go ma ban thu nhap duoc",kgcutt[playerid]/2,kgcutt[playerid]);
SendClientMessage(playerid, COLOR_SYSTEM, string);
kgcutt[playerid] = 0;
if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
if(IsPlayerAttachedObjectSlotUsed(playerid,2)) RemovePlayerAttachedObject(playerid,2);
if(IsPlayerAttachedObjectSlotUsed(playerid,3)) RemovePlayerAttachedObject(playerid,3);
}
return 1;
}

Line 366
Quote:

GivePlayerCash(giveplayerid, kgcutt[playerid]*8 );

Reply
#2

Anyone can help me ?
Reply
#3

its written GivePlayerCash(giveplayerid, kgcutt[playerid]*8 );
but "giveplayerid" is not defined i think it should e playerid
Reply
#4

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
its written GivePlayerCash(giveplayerid, kgcutt[playerid]*8 );
but "giveplayerid" is not defined i think it should e playerid
I change "Giveplayerid" > "playerid" working nice , but job can't payment money for player after complete job, im using FS not on gamemode , what can i do to fix that !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)