A little help
#1

i get these errors when making these commands

Код:
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(556) : warning 202: number of arguments does not match definition
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(556) : warning 202: number of arguments does not match definition
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(560) : warning 202: number of arguments does not match definition
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(560) : warning 202: number of arguments does not match definition
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(564) : warning 202: number of arguments does not match definition
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(564) : warning 202: number of arguments does not match definition
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(568) : warning 202: number of arguments does not match definition
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\tele.pwn(568) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
I get them in here

pawn Код:
if(strcmp(cmdtext, "/gate1", true, 10) == 0) {
gate1 = MoveObject(gate1, 985.34210205078, 1755.7589111328, 12.696279525757, 0.000000, 0.000000, 90);
SendClientMessage(playerid, COLOR_GREEN, "Gate Opened Type /gate1close to close the Gate.");
return 1;}
if(strcmp(cmdtext, "/gate1close", true, 10) == 0) {
gate1 = MoveObject(gate1, 997.34210205078, 1755.7589111328, 12.696279525757, 0.000000, 0.000000, 90);
SendClientMessage(playerid, COLOR_GREEN, "Gate Closed Type /gate1 to open the Gate.");
return 1;}
if(strcmp(cmdtext, "/gate2", true, 10) == 0) {
gate2 = MoveObject(gate2, 985.29022216797, 1711.0880126953, 12.680534362793, 0.000000, 0.000000, 90);
SendClientMessage(playerid, COLOR_GREEN, "Gate Opened Type /gate2close to close the Gate.");
return 1;}
if(strcmp(cmdtext, "/gate2close", true, 10) == 0) {
gate2 = MoveObject(gate2, 997.29022216797, 1711.0880126953, 12.680534362793, 0.000000, 0.000000, 90);
SendClientMessage(playerid, COLOR_GREEN, "Gate Closed Type /gate2 to open the Gate.");
return 1;}
i have the object create already
pawn Код:
gate1 = CreateObject(980, 997.34210205078, 1755.7589111328, 12.696279525757, 0.000000, 0.000000, 90);
gate2 = CreateObject(980, 997.29022216797, 1711.0880126953, 12.680534362793, 0.000000, 0.000000, 90);
and these
pawn Код:
new gate1;
new gate2;
help please

~WSFM~
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/gate1", true, 10) == 0) { // Edit the /eup to your elevator command.
MoveObject(gate1, 985.34210205078, 1755.7589111328, 12.696279525757, 2); // Put your cords in here
SendClientMessage(playerid, COLOR_GREEN, "Gate Opened Type /gate1close to close the Gate."); // You dont alwas have to put this in, delete if wanted.
return 1;}
if(strcmp(cmdtext, "/gate1close", true, 10) == 0) { // Same deal as before
MoveObject(gate1, 997.34210205078, 1755.7589111328, 12.696279525757, 2); // Same deal as before
SendClientMessage(playerid, COLOR_GREEN, "Gate Closed Type /gate1 to open the Gate."); // Same deal as before
return 1;}
if(strcmp(cmdtext, "/gate2", true, 10) == 0) { // Edit the /eup to your elevator command.
MoveObject(gate2, 985.29022216797, 1711.0880126953, 12.680534362793, 2); // Put your cords in here
SendClientMessage(playerid, COLOR_GREEN, "Gate Opened Type /gate2close to close the Gate."); // You dont alwas have to put this in, delete if wanted.
return 1;}
if(strcmp(cmdtext, "/gate2close", true, 10) == 0) { // Same deal as before
MoveObject(gate2, 997.29022216797, 1711.0880126953, 12.680534362793, 2); // Same deal as before
SendClientMessage(playerid, COLOR_GREEN, "Gate Closed Type /gate2 to open the Gate."); // Same deal as before
return 1;}
Try it.
Reply
#3

xD thanks it worked would reply sooner but i had to fix coordinates for open xD btw nice signature xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)