27.09.2011, 12:55
the gates command i use i keep getting 2 errors and the errors are
C:\Users\Joe\Desktop\Admin-Vip V.3\Admin-VIP.pwn(88 : error 017: undefined symbol "messagecolor"
C:\Users\Joe\Desktop\Admin-Vip V.3\Admin-VIP.pwn(895) : error 017: undefined symbol "messagecolor"
C:\Users\Joe\Desktop\Admin-Vip V.3\Admin-VIP.pwn(88 : error 017: undefined symbol "messagecolor"
C:\Users\Joe\Desktop\Admin-Vip V.3\Admin-VIP.pwn(895) : error 017: undefined symbol "messagecolor"
pawn Код:
new Gate1,Gate2;
new GateData;
GateData = 0;
Gate1 = CreateObject(985, 2296.25, 622.98, 10.62, 0.00, 0.00, 0.00); //gate 1
Gate2 = CreateObject(986, 2278.56, 623.00, 10.62, 0.00, 0.00, 0.00); //gate 2
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gate", cmdtext, true, 10) == 0)
{
if(GateData == 0)
{
SendClientMessage(playerid,messagecolor,"Admin/Vip House Now Open!");
MoveObject(Gate1, 2296.25, 622.98, 10.62, 2.00);
MoveObject(Gate2, 2278.56, 623.00, 10.62, 2.00);
GateData = 1;
}
else
{
SendClientMessage(playerid,messagecolor,"Admin/Vip House Gates Now Closed!");
MoveObject(Gate1, 2290.88, 623.08, 10.62, 2.00);
MoveObject(Gate2, 2282.93, 623.07, 10.62, 2.00);
GateData = 0;
}
return 1;
}