jeudi 6 novembre 2014

Errors in the script

Hello there, ive been trying all tweeks i know of try solve this problem, havent seem to found one yet. allthought ive been scripting for a time this errors is making my head bang. So if you have a sullution please let me know :)





SCRIPT CODE


Quote:








public OnPlayerDeath(playerid, killerid, reason)

{

if(!IsPlayerNPC(killerid))

{

if(killerid != INVALID_PLAYER_ID)

{

if(playerid <= 100)

{

new randommoney = random(300);

new randomxp = random(120);

SendDeathMessage(killerid, playerid, reason);

GivePlayerValue(killerid, MONEY, randommoney);

GivePlayerValue(killerid, XP, randomxp);

pInfo[killerid][PlayersKilled]++;



ERROR CODES


Quote:








C:\Users\Unknow\Desktop\Ny mapp\pawno\include\sscanf2.inc(141) : error 029: invalid expression, assumed zero

C:\Users\Unknow\Desktop\Ny mapp\pawno\include\sscanf2.inc(141) : error 001: expected token: ")", but found ";"

C:\Users\Unknow\Desktop\Ny mapp\pawno\include\sscanf2.inc(141 -- 143) : warning 215: expression has no effect

C:\Users\Unknow\Desktop\Ny mapp\pawno\include\sscanf2.inc(143) : error 001: expected token: ";", but found "return"

C:\Users\Unknow\Desktop\Ny mapp\pawno\include\sscanf2.inc(143) : fatal error 107: too many error messages on one line



Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



Cheers for all help comming :)




Aucun commentaire:

Enregistrer un commentaire