1
mIRC/pawn Scripting / Re: Small Help Needed !
« on: March 09, 2012, 12:22:16 pm »
ok I will try it..ThankS For your Help,
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
E:\NOORAN~1\CID.pwn(139) : warning 201: redefinition of constant/macro (symbol "pInfo")These Errors Comming Now Tell What i do ?
E:\NOORAN~1\CID.pwn(347) : error 017: undefined symbol "skinid"
E:\NOORAN~1\CID.pwn(351) : error 017: undefined symbol "skinid"
E:\NOORAN~1\CID.pwn(824) : warning 204: symbol is assigned a value that is never used: "szMsg"
E:\NOORAN~1\CID.pwn(837) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(862) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(1817) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2159) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2461) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2481) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2510) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2767) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2818) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(2825) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2829) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(3069) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3078) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3087) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3096) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3200) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3246) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3254) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "x" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "y" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "z" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3563) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3974) : warning 219: local variable "tmp" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(4260) : warning 204: symbol is assigned a value that is never used: "vehicle"
E:\NOORAN~1\CID.pwn(5515) : warning 203: symbol is never used: "Wanted"
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase
2 Errors.
hEy Innocent Heart i Am haAving TrouBle ReADinG lIke ThIS mAYbe iF YOu tYpE nORmaLLY I cOUlD aCtUAlly ReAd What YoU ARe TrYIng To sAySorry Now i will Right Properly. And Topic Solved.
Don't put any } before returns if you start with one single {ok Thank You For your Help .
[pawn]public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
SendClientMessage(playerid,COLOR_GREEN,"Starting Vehicle Engine!");
return 1;
}[/pawn]
1. Triple postSorry Now For Triple Post and ok i will wait Try To tell me Early If u can ...
2. Try to speak with regular letters, and don't mix capitals with normal letters..
TL;DR : Don't write this way "HeY GuYz HowArE YOu ?"
3. Learn to wait, I will probably answer whenever I come home...
E:\NOORAN~1\CID.pwn(134) : warning 201: redefinition of constant/macro (symbol "pInfo")So What i Do tell me ?
E:\NOORAN~1\CID.pwn(310) : error 010: invalid function or declaration
E:\NOORAN~1\CID.pwn(812) : warning 204: symbol is assigned a value that is never used: "szMsg"
E:\NOORAN~1\CID.pwn(825) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(850) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(1805) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2147) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2449) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2469) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2498) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2755) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2806) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(2813) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2817) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(3057) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3066) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3075) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3084) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3188) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3234) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3242) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3532) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3532) : warning 219: local variable "x" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3532) : warning 219: local variable "y" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3532) : warning 219: local variable "z" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3551) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3962) : warning 219: local variable "tmp" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(4248) : warning 204: symbol is assigned a value that is never used: "vehicle"
E:\NOORAN~1\CID.pwn(5503) : warning 203: symbol is never used: "Wanted"
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase
1 Error.
thnxsMan Don't Say Thankx Again to me Because in Freinds i Don't That Someone is Saying me Thanks
Anyway take this!Nice Work.!
[pawn]}
else if ( strcmp( cmd, "slap", true ) == 0 )
{
new reason[ 256 ], plr, szMsg[ 128 ];
tmp = strtok( cmdtext, idx ), reason = strtok( cmdtext, idx ), plr = FindPlayerIDFromString( tmp );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
else if ( !strlen(reason) ) SendClientMessage( playerid, COLOR_RED, "USAGE: /c slap [Nick/ID] [Reason]" );
else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
else
{
new Float:x, Float:y, Float:z;
GetPlayerPos( plr, x, y, z );
SetPlayerPos( plr, x+3, y+3, z+3, 0, 0 );
format( szMsg, sizeof( szMsg ), "Admin %s slaped player:[ %s ] Reason:[ %s ]", gPlayers[ playerid ], gPlayers[ plr ], cmdtext[ strlen( tmp ) +6 ] );
SendClientMessageToAll( COLOR_GREEN, szMsg );
SetPlayerDrunk(playerid, 300, 300);
}
return 1;[/pawn]