SA-MP Forums Archive
What wrong with this code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What wrong with this code (/showthread.php?tid=299479)



What wrong with this code - boyan96 - 26.11.2011

C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : error 001: expected token: ",", but found "."
C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : error 029: invalid expression, assumed zero
C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : warning 215: expression has no effect
C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : warning 215: expression has no effect
C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : warning 215: expression has no effect
C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : warning 215: expression has no effect
C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : error 001: expected token: ";", but found ")"
C:\Users\boyan\Desktop\New folder (4)\filterscripts\vrat.pwn(249) : fatal error 107: too many error messages on one line


Re: What wrong with this code - SmiT - 26.11.2011

pawn Код:
244 if (strcmp("/admindead", cmdtext, true, 10) == 0)
245       {
246       MoveObject(gumi,1447.11132812,-1470.43359375,12.09654999, 2.00);
247       MoveObject(gumi,1446.40673828,-1468.68615723,12.37339306, 2.00);
248       MoveObject(gumi,1456.10839844,-1470.27490234,12.35156250, 2.00);
249       MoveObject(gumi,1460.82836914,-1471.22790527,12.65607643, 2.00); /* here was the problem */
250       MoveObject(gumi,1463.65356445,-1470.89440918,12.78884888, 2.00);
251       MoveObject(gumi,1442.74023438,-1536.90515137,12.54687500, 2.00);
252       MoveObject(gumi,1442.74023438,-1536.90429688,12.54687500, 2.00);
253       MoveObject(gumi,1433.07153320,-1535.15502930,12.37769794, 2.00);
254       MoveObject(gumi,1429.08435059,-1534.31030273,12.66855526, 2.00);
255       return 1;}
256       if (strcmp("/admindead1", cmdtext, true, 10) == 0)
257       {
258       MoveObject(gumi,1447.11132812,-1470.43359375,8.09654999, 2.00);
259       MoveObject(gumi,1446.40673828,-1468.68615723,8.37339306, 2.00);
260       MoveObject(gumi,1456.10839844,-1470.27490234,8.35156250, 2.00);
261       MoveObject(gumi,1447.1460.82836914,-1471.22790527,8.65607643, 2.00);
262       MoveObject(gumi,1463.65356445,-1470.89440918,8.78884888, 2.00);
263       MoveObject(gumi,1442.74023438,-1536.90515137,8.54687500, 2.00);
264       MoveObject(gumi,1442.74023438,-1536.90429688,8.54687500, 2.00);
265       MoveObject(gumi,1433.07153320,-1535.15502930,8.37769794, 2.00);
266       MoveObject(gumi,1429.08435059,-1534.31030273,8.66855526, 2.00);
267       return 1;}



Re: What wrong with this code - [MG]Dimi - 26.11.2011

249 1447.1460.82836914


Re: What wrong with this code - boyan96 - 26.11.2011

again give me the same error


Re: What wrong with this code - SmiT - 26.11.2011

This should work:

pawn Код:
if (strcmp("/admindead", cmdtext, true, 10) == 0)
    {
        MoveObject(gumi,1447.11132812,-1470.43359375,12.09654999, 2.00);
        MoveObject(gumi,1446.40673828,-1468.68615723,12.37339306, 2.00);
        MoveObject(gumi,1456.10839844,-1470.27490234,12.35156250, 2.00);
        MoveObject(gumi,1460.82836914,-1471.22790527,12.65607643, 2.00);
        MoveObject(gumi,1463.65356445,-1470.89440918,12.78884888, 2.00);
        MoveObject(gumi,1442.74023438,-1536.90515137,12.54687500, 2.00);
        MoveObject(gumi,1442.74023438,-1536.90429688,12.54687500, 2.00);
        MoveObject(gumi,1433.07153320,-1535.15502930,12.37769794, 2.00);
        MoveObject(gumi,1429.08435059,-1534.31030273,12.66855526, 2.00);
        return 1;
    }
    if (strcmp("/admindead1", cmdtext, true, 10) == 0)
    {
        MoveObject(gumi,1447.11132812,-1470.43359375,8.09654999, 2.00);
        MoveObject(gumi,1446.40673828,-1468.68615723,8.37339306, 2.00);
        MoveObject(gumi,1456.10839844,-1470.27490234,8.35156250, 2.00);
        MoveObject(gumi,1460.82836914,-1471.22790527,8.65607643, 2.00); /* ... */
        MoveObject(gumi,1463.65356445,-1470.89440918,8.78884888, 2.00);
        MoveObject(gumi,1442.74023438,-1536.90515137,8.54687500, 2.00);
        MoveObject(gumi,1442.74023438,-1536.90429688,8.54687500, 2.00);
        MoveObject(gumi,1433.07153320,-1535.15502930,8.37769794, 2.00);
        MoveObject(gumi,1429.08435059,-1534.31030273,8.66855526, 2.00);
        return 1;
    }



Re: What wrong with this code - boyan96 - 26.11.2011

thank you smit i give you Reputation