21.04.2009, 21:15
Why Is This Not Working
line 99: public OnPlayerCommandText(playerid, cmdtext[])
line 100: {
line 101: if (strcmp(cmdtext, "/chicken", true) == 0)
line 102: {
line 103: new float:X,float:Y,float:Z;
line 104: new chicken;
line 105: GetPlayerPos(playerid,float:X,float:Y,float:Z);
line 106: CreateObject(16776,float:X,float:Y,float:Z,0,0,0 );
line 107: AttachObjectToPlayer(chicken, playerid, 0, 0, 0, 0, 0, 0);
line 108: return 1;
line 109: }
line 110: return 0;
line 111: }
Warnings:
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(105) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(105) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(105) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(106) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(106) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(106) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(10 : warning 217: loose indentation
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(110) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
8 Warnings.
line 99: public OnPlayerCommandText(playerid, cmdtext[])
line 100: {
line 101: if (strcmp(cmdtext, "/chicken", true) == 0)
line 102: {
line 103: new float:X,float:Y,float:Z;
line 104: new chicken;
line 105: GetPlayerPos(playerid,float:X,float:Y,float:Z);
line 106: CreateObject(16776,float:X,float:Y,float:Z,0,0,0 );
line 107: AttachObjectToPlayer(chicken, playerid, 0, 0, 0, 0, 0, 0);
line 108: return 1;
line 109: }
line 110: return 0;
line 111: }
Warnings:
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(105) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(105) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(105) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(106) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(106) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(106) : warning 213: tag mismatch
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(10 : warning 217: loose indentation
C:\Users\CTAMOD623\Desktop\Testing Script.pwn(110) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
8 Warnings.