symbol is assigned a value that is never used:
#1

pawn Code:
forward weps();
public weps()
{
    new id;
    new amo = GetPlayerAmmo(id);
    new notallowed[4] = (35, 36, 37, 38);   // symbol is assigned a value that is never used: "notallowed"
    if(GetPlayerWeapon(id) == sizeof(notallowed) && amo >= 1 ) {
    return SendClientMessage(id, 0xF97804FF, "ur wep is not allowed !!");
    }
    return 1;
}
Im not sure whats wrong.... ;/
Reply
#2

pawn Code:
new notallowed[] = {35, 36, 37, 38};
Try this.
Reply
#3

Also, your code will only work for ID 0.
Reply
#4

Quote:
Originally Posted by Calgon
View Post
pawn Code:
new notallowed[] = {35, 36, 37, 38};
Try this.
same line more errors
pawn Code:
: error 017: undefined symbol "neleistinas"
: error 029: invalid expression, assumed zero
: warning 215: expression has no effect
: error 001: expected token: ";", but found ")"
: fatal error 107: too many error messages on one line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)