#include <a_samp> new Gate1a; forward close(); #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" wiz wrate"); print("--------------------------------------\n"); Gate1a = CreateObject(971,321.10000610,-1188.59997559,76.30000305,0.00000000,0.00000000,38.00000000) return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/wiz", cmdtext, true, 10) == 0) { MoveObject(Gate1a,316.20001221, -1192.45495605, 76.30000305, 10.00); SetTimer("close", 5000, 0); SendClientMessage(playerid,0xFF0000FF,"You are opening a Gate, and will be closed automaticly.."); return 1; } return 0; } public close() { MoveObject(Gate1a,321.10000610, -1188.59997559, 76.30000305 10.00); return 1; } #endif
C:\Users\MaticKepa\Desktop\WIZ WRATA.pwn(39) : warning 203: symbol is never used: "Gate1a" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
My Code:
Code:
#include <a_samp> new Gate1a; forward close(); #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" wiz wrate"); print("--------------------------------------\n"); Gate1a = CreateObject(971,321.10000610,-1188.59997559,76.30000305,0.00000000,0.00000000,38.00000000) return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/wiz", cmdtext, true, 10) == 0) { MoveObject(Gate1a,316.20001221, -1192.45495605, 76.30000305, 10.00); SetTimer("close", 5000, 0); SendClientMessage(playerid,0xFF0000FF,"You are opening a Gate, and will be closed automaticly.."); return 1; } return 0; } public close() { MoveObject(Gate1a,321.10000610, -1188.59997559, 76.30000305 10.00); return 1; } #endif Code:
C:\Users\MaticKepa\Desktop\WIZ WRATA.pwn(39) : warning 203: symbol is never used: "Gate1a" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
Warnings Are Fine, its errors you need to look out for. First, is the script working ingame? If it isnt, reply.
|
#pragma unused Gate1a
Either that, or remove the preprocessor directives altogether (lines that start with #).
|